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


isListening bool
Whether there are any listeners.
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


didRegisterListener() → void
Calls didStartListening every time a registration of a listener causes an empty list of listeners to become non-empty.
didStartListening() → void
Called when the number of listeners changes from zero to one.
didStopListening() → void
Called when the number of listeners changes from one to zero.
didUnregisterListener() → void
Calls didStopListening when an only remaining listener is unregistered, thus making the list empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.