StateWatcherGroup class
A group of watchers that can be managed together
Constructors
- StateWatcherGroup.new({String? name, bool enableDebugMode = kDebugMode})
Properties
- count → int
-
Gets the count of watchers in this group
no setter
- enableDebugMode → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
watchers
→ List<
StateWatcher> -
Gets all watchers in this group
no setter
Methods
-
add(
StateWatcher watcher) → void - Adds a watcher to this group
-
clear(
) → void - Clears all watchers from this group
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
StateWatcher watcher) → void - Removes a watcher from this group
-
toString(
) → String -
A string representation of this object.
override
-
triggerAll(
dynamic newValue, dynamic oldValue) → Future< void> - Triggers all watchers in this group with the same values
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited