IObservable<T> class
abstract
Observable state interface
Constructors
Properties
- customStatus ↔ Object?
-
Custom status of the state. Set manually to mark the state with a particular
tag to be used in your logic.
getter/setter pair
- error → dynamic
-
The error
no setter
- hasData → bool
-
The state is mutated successfully.
no setter
- hasError → bool
-
The stats has error
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasObservers → bool
-
Whether the state has listeners or not
no setter
- isDone → bool
-
The state is mutated using a stream and the stream is done.
no setter
- isIdle → bool
-
The state is initialized and never mutated.
no setter
- isWaiting → bool
-
The state is waiting for and asynchronous task to end.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapState
→ SnapState<
T> -
A snap representation of the state
no setter
Methods
-
addCleaner(
VoidCallback listener) → VoidCallback - Add a callback to be executed when the state is disposed of.
-
addObserver(
{required ObserveReactiveModel listener, bool shouldAutoClean = false, bool isSideEffects = true}) → VoidCallback - Add observer to this state.
-
cleanState(
) → void - Clean the state
-
dispose(
) → void - Dispose the state
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void - Notify observers
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited