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.

Superclass Constraints
Implemented by

Constructors

AnimationLazyListenerMixin()

Properties

isListening bool
Whether there are any listeners.
read-only
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

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.
@protected
didStopListening() → void
Called when the number of listeners changes from one to zero.
@protected
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. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited