BaseReduxAction<N extends ReduxNotifier<T> , T, R> class
abstract
The action that is dispatched by a ReduxNotifier. You should use ReduxAction or AsyncReduxAction instead.
- Implemented types
- Mixed-in types
- Implementers
Constructors
Properties
- debugLabel → String
-
The debug label of the action.
Override this getter to provide a custom label.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- notifier → N
-
Access the notifier to access other notifiers.
no setter
- notifierType → Type
-
no setter
- refenaId → int
-
The id.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → T
-
Returns the current state of the notifier.
no setter
- trackOrigin → bool
-
Whether the ActionDispatchedEvent should have the
ActionDispatchedEvent.debugOriginRef of the origin of the action.
This is true by default for better visualization in the tracing page.
no setter
Methods
-
after(
) → void -
Override this to have some logic after the action is dispatched.
This method is called even if before or
reduce
throws. -
before(
) → FutureOr< void> -
Override this to have some logic before the action is dispatched.
If this method throws, the
reduce
method will not be called but after will still be called. -
compareIdentity(
IdReference other) → bool -
Returns true, if the other reference has the same id.
inherited
-
dispatch(
SynchronousReduxAction< N, T, dynamic> action, {String? debugOrigin}) → T - Dispatches a synchronous action and updates the state. Returns the new state.
-
dispatchAsync(
AsynchronousReduxAction< N, T, dynamic> action, {String? debugOrigin}) → Future<T> - Dispatches an asynchronous action and updates the state. Returns the new state.
-
dispatchAsyncTakeResult<
R2> (BaseAsyncReduxActionWithResult< N, T, R2> action, {String? debugOrigin}) → Future<R2> - Dispatches an asynchronous action and updates the state. Returns only the result of the action.
-
dispatchAsyncWithResult<
R2> (BaseAsyncReduxActionWithResult< N, T, R2> action, {String? debugOrigin}) → Future<(T, R2)> - Dispatches an asynchronous action and updates the state. Returns the new state along with the result of the action.
-
dispatchTakeResult<
R2> (BaseReduxActionWithResult< N, T, R2> action, {String? debugOrigin}) → R2 - Dispatches an action and updates the state. Returns only the result of the action.
-
dispatchWithResult<
R2> (BaseReduxActionWithResult< N, T, R2> action, {String? debugOrigin}) → (T, R2) - Dispatches an action and updates the state. Returns the new state along with the result of the action.
-
emitMessage(
String message) → void - Emits a message to the observer.
-
external<
T2> (ReduxNotifier< T2> notifier) → Dispatcher<ReduxNotifier< T2> , T2> -
Use this method to dispatch external actions within an action.
This ensures that the dispatched action has the correct
debugOrigin
. -
internalWrapReduce(
) → FutureOr< (T, R)> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited