AnimationLazyListenerMixin mixin Null safety
A mixin that helps listen to another object only when this object has registered listeners.
This mixin provides implementations of didRegisterListener and didUnregisterListener, and therefore can be used in conjunction with mixins that require these methods, AnimationLocalListenersMixin and AnimationLocalStatusListenersMixin.
- Mixin Applications
Properties
- isListening → bool
-
Whether there are any listeners.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
didRegisterListener(
) → void -
Calls didStartListening every time a registration of a listener causes
an empty list of listeners to become non-empty.
protected">@protected
-
didStartListening(
) → void -
Called when the number of listeners changes from zero to one.
protected">@protected
-
didStopListening(
) → void -
Called when the number of listeners changes from one to zero.
protected">@protected
-
didUnregisterListener(
) → void -
Calls didStopListening when an only remaining listener is unregistered,
thus making the list empty.
protected">@protected
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited