ListNotifierSingleMixin mixin
This mixin adds listener management capabilities to Listenable.
- Superclass constraints
- Mixin applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Checks if the notifier has been disposed.
no setter
- listenersLength → int
-
Returns the number of active listeners.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
GetStateUpdate listener) → Disposer -
Adds a listener and returns a Disposer to remove it later.
override
-
containsListener(
GetStateUpdate listener) → bool - Checks if a given listener is already registered.
-
dispose(
) → void - Disposes of the notifier, preventing further updates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void - Notifies all registered listeners of an update.
-
removeListener(
VoidCallback listener) → void -
Removes a registered listener.
override
-
reportAdd(
VoidCallback disposer) → void - Reports a new listener addition.
-
reportRead(
) → void - Reports that a read operation has occurred.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited