Store class
A comfortable way to develop reactive widgets. You can dynamically add or remove effects and states and many more.
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addEffect(
EffectCallback callback, { String effectKey }) → Store - This method is usefull to add a single effect passing a callback ( Actions action$, Store store$)=>Observable and effectKey on demand. [...]
-
addEffects(
BaseEffect effectInstance) → Store - This method is usefull to add effects passing effectInstance on demand.
-
addState(
BaseState stateInstance) → Store - This method is usefull to add a state passing stateInstance on demand.
-
dispatch(
Action action) → Store -
dispose(
) → dynamic - It's a clean up function.
-
exportState(
) → Observable< List> -
return latest stream of
action, state
array. [...] -
importState(
Map< String, dynamic> state) → void - state object should be a Map<String, dynamic> state [...]
-
removeEffectsByKey(
String effectKey) → Store - This method is usefull to remove effects passing effectKey on demand.
-
removeStateByStateName(
String stateName) → Store - This method is usefull to remove a state passing stateName on demand.
-
select<
T> ({String stateName }) → Observable< T> - This method takes a single param String stateName and return Observable/Stream
-
select2<
T> (T callback(Map< String, dynamic> state)) → Observable<T> - This method takes a callback which has a single Map<String, dynamic> type arg. If you pass Map key as a state name then you will get corresponding model instance as value. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited