BaseListenable mixin Reactivity
A mixin that provides functionality for listening..
This mixin implements the observer pattern, allowing components to be notified when data changes.
- Mixin applications
- @protected
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Returns
trueif there are any listeners registeredno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
ListenableCallback listener) → void - Registers a listener to be called when any data changes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllListeners(
) → void - Removes all registered listeners..
-
removeListener(
ListenableCallback listener) → void - Removes a previously registered listener.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited