ControllerWatcher<T> class
base
A class that can be extended to provide a mechanism for notifying listeners of changes to a value.
This class is a singleton, so it can be used to notify listeners of changes to a value from anywhere in the app.
Constructors
- ControllerWatcher.new()
-
Factory constructor to lazily initialize the instance of ControllerWatcher
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listeners
→ List<
ControllerSubscriber< T> > -
Returns a copy of the list of registered listeners.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
ControllerSubscriber< T> listener) → void - Adds a listener to the list of listeners.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
[dynamic value]) → void - Notifies all the registered listeners of a change to the value.
-
removeListener(
ControllerSubscriber< T> listener) → void - Removes a listener from the list of listeners.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited