MEventHandler mixin
Event handler capability for derivative of Component.
- Mixin applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addOnChangeTo(
Element node, void onChange(Event)) → void -
Creates an onChange event on
node
(has to be anElement
orDocument
type). Call this in loadEventHandlers. -
addOnClickTo(
Element node, void onClick(Event)) → void -
Creates an onClick event on
node
(has to be anElement
orDocument
type). Call this in loadEventHandlers. -
addSubscription(
StreamSubscription subs) → void - A generic method to add an event subscription which will also get cancelled when unloadEventHandlers is called.
-
addSubscriptions(
Iterable< StreamSubscription> subs) → void - A generic method to add (bulk) event subscriptions which will also get cancelled when unloadEventHandlers is called.
-
loadEventHandlers(
) → void - Place all your event listener here. Use add event methods (like addOnClickTo).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unloadEventHandlers(
) → void - Unloads all event subscriptions previously added under loadEventHandlers.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited