BuildContextExtensionForProviderAndConnector<St> extension

on

Methods

clearExceptionFor(Object actionOrTypeOrList) → void
Removes the given actionTypeOrList from the list of action types that failed.
dispatch(ReduxAction action, {bool notify = true}) FutureOr<ActionStatus>
Dispatches the action, applying its reducer, and possibly changing the store state. The action may be sync or async.
dispatchAll(List<ReduxAction<St>> actions, {bool notify = true}) → void
Dispatches all given actions in parallel, applying their reducer, and possibly changing the store state.
dispatchAndWait(ReduxAction action, {bool notify = true}) Future<ActionStatus>
Dispatches the action, applying its reducer, and possibly changing the store state. The action may be sync or async. In both cases, it returns a Future that resolves when the action finishes.
dispatchAndWaitAll(List<ReduxAction<St>> actions, {bool notify = true}) Future<void>
Dispatches all given actions in parallel, applying their reducers, and possibly changing the store state. The actions may be sync or async. It returns a Future that resolves when ALL actions finish.
dispatchSync(ReduxAction action, {bool notify = true}) ActionStatus
Dispatches the action, applying its reducer, and possibly changing the store state. However, if the action is ASYNC, it will throw a StoreException.
exceptionFor(Object actionOrTypeOrList) UserException?
Returns the UserException of the actionTypeOrList that failed.
getState<St>() → St
Get the state, without a StoreConnector. Note: Widgets that use this method will rebuild whenever the state changes.
isFailed(Object actionOrTypeOrList) bool
Returns true if an actionOrTypeOrList failed with an UserException.
isWaiting(Object actionOrTypeOrList) bool
You can use isWaiting and pass it actionOrActionTypeOrList to check if: