Store<State> class
abstract
Store it's an abstract class that implements Selectors<ValueListenable<Error?>, ValueListenable
- Inheritance
- Implemented types
Properties
- error → dynamic
-
Get error value;
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Get loading value;
no setteroverride
-
lastState
→ Triple<
State> -
lastState it's a get
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectAll → Listenable
-
Return a Listenable with all triple changes.
latefinal
- selectError → RxValueListenable
-
Select the reativide Error segment
no setteroverride
-
selectLoading
→ RxValueListenable<
bool> -
Select the reativide Loading segment
no setteroverride
-
selectState
→ RxValueListenable<
State> -
Select the reativide State segment
no setteroverride
- state → State
-
Get the state value;
no setteroverride
-
triple
→ Triple<
State> -
Get the complete triple value;
no setterinherited
Methods
-
destroy(
) → Future -
Discard the store
override
-
execute(
Future< State> func(), {Duration delay = const Duration(milliseconds: 50)}) → Future<void> -
Execute a Future.
inherited
-
executeStream(
Stream< State> stream) → StreamSubscription -
Execute a Stream.
inherited
-
initStore(
) → void -
inherited
-
middleware(
Triple< State> newTriple) → Triple<State> -
called when dispacher update, setLoading or setError
overriding to change triple before the propagation;
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observer(
{void onState(State state)?, void onLoading(bool loading)?, void onError(dynamic error)?}) → Disposer -
Observer the Segmented State.
override
-
propagate(
Triple< State> triple) → void -
IMPORTANT!!!
THIS METHOD TO BE VISIBLE FOR OVERRIDING ONLY!!!
override
-
setError(
dynamic newError, {bool force = false}) → void -
Change the error value.
inherited
-
setLoading(
bool newloading, {bool force = false}) → void -
Change the loading value.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
State newState, {bool force = false}) → void -
Change the State value.
inherited
-
when<
TReturn> ({required TReturn onState(State state), TReturn onLoading(bool isLoading)?, TReturn onError(dynamic error)?}) → TReturn -
Represents a value of one of three mapped possibilities.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited