AnimationLocalListenersMixin mixin
A mixin that implements the addListener/removeListener protocol and notifies all the registered listeners when notifyListeners is called.
This mixin requires that the mixing class provide methods didRegisterListener and didUnregisterListener. Implementations of these methods can be obtained by mixing in another mixin from this library, such as AnimationLazyListenerMixin.
- 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
-
addListener(
VoidCallback listener) → void - Calls the listener every time the value of the animation changes.
-
clearListeners(
) → void - Removes all listeners added with addListener.
-
didRegisterListener(
) → void - Called immediately before a listener is added via addListener.
-
didUnregisterListener(
) → void - Called immediately after a listener is removed via removeListener.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void - Calls all the listeners.
-
removeListener(
VoidCallback listener) → void - Stop calling the listener every time the value of the animation changes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited