Observable class
Single case
Constructors
- Observable()
-
factory
Properties
Methods
-
addObserver(
Observer observer) → dynamic - Add observer
-
addRepeatedlyObserver(
Observer observer) → dynamic - 重复添加 add Repeatedly
-
length(
) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyObservers(
List< String> stateNames, {String? notifyName, Map? map}) → dynamic - Used in the page that sent the notification stateNames state name to update Map notification data, can be null
-
removeObserver(
Observer observer) → dynamic - Remove viewers when the page is not in use
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → Observable
-
no setter