ImplNotifyListenersChangeNotifierMixin mixin StateX class State Object Controller

Allows you to use a ChangeNotifier as a Mixin

setBuilder(WidgetBuilder? builder) rebuilds with every setState() call.

IMPORTANT Important to call the ChangeNotifier's dispose() function.

dartdoc:

Properties

hasChangeListeners bool
Whether any listeners are currently registered.
no setter
hasChangeNotifierImpl bool
A flag. Instantiated Change Notifier
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setBuilderUsed bool
A flag. Noting if the function above is ever used.
no setter

Methods

addListener(VoidCallback listener) bool
Register a closure to be called when the object changes.
disposeChangeNotifier() → void
Don't forget to call this method in the appropriate dispose() function!
initChangeNotifier() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() bool
Call all the registered listeners.
removeListener(VoidCallback listener) bool
Remove a previously registered closure from the list of closures that are notified when the object changes.
setBuilder(MaybeBuildWidgetType? builder) Widget
Returns a widget from builder assuming the current object is a Listenable const SizedBox.shrink() otherwise
toString() String
A string representation of this object.
inherited

Operators

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