BaseNotifier<T> class
abstract
Define a base notifier for SimpleNotifier and StateNotifier
- Implementers
Constructors
Properties
- disposed → bool
-
Tell us if the controller was disposed
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasListeners → bool
-
returns true when the current notifier has subscribers
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
A broadcast stream representation of a StateNotifier.
no setter
Methods
-
addListener(
ListenerCallback< T> listener) → void - add a new listener
-
dispose(
) → void - use to listen when the controller was deleted from memory
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
T data) → void - notify to listeners and rebuild the widgets
-
removeListener(
ListenerCallback< T> listener) → void - remove a listener from the notifier
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited