ChangesNotifierHelperMixin mixin
A mixin that provides a way to notify listeners.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether the object has listeners.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
defaultAddListener(
ChangeListener listener) → void - Add a listener to the list of listeners.
-
defaultNotifyListeners(
Object? event) → void - Notify all the listeners.
-
defaultRemoveListener(
ChangeListener listener) → void - Remove a listener from the list of listeners.
-
dispose(
) → void - Disposes the object making it unusable for further operations and releasing the resources.
-
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
Static Methods
-
debugAssertNotDisposed(
ChangesNotifierHelperMixin notifier) → bool - A debug assertion to check if the object is disposed.
-
maybeDispatchObjectCreation(
ChangesNotifierHelperMixin object) → void - Report that the object has been created. This method is called by the object itself to report that it has been created. This is used to track memory allocations. This method is only called if kFlutterMemoryAllocationsEnabled is true.