AnimationLazyListenerMixin mixin

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

hashCode int
The hash code for this object.
no setterinherited
isListening bool
Whether there are any listeners.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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