WeakChangeNotifier class mixin
A modified version of ChangeNotifier that uses WeakReference for its listeners.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
❌ Do not use this method directly. Use addStrongRefListener instead.
override
-
addSingleExecutionListener(
VoidCallback listener) → void - Registers a listener that will be called only once when the object notifies its listeners. After the listener is called, it is automatically removed.
-
addStrongRefListener(
{required VoidCallback strongRefListener}) → void - Register a closure to be called when the object notifies its listeners.
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- printGarbageCollectionStatus ↔ bool
-
getter/setter pair