NavigationPushNamedAction<R> class
Methods
-
after()
→ void
-
Override this to have some logic after the action is dispatched.
This method is called even if before or reduce throws.
inherited
-
before()
→ Future<void>
-
See BaseReduxAction.before for documentation.
inherited
-
compareIdentity(IdReference other)
→ bool
-
Returns true, if the other reference has the same id.
inherited
-
dispatch(SynchronousReduxAction<GlobalRedux, void, dynamic> action, {String? debugOrigin})
→ void
-
Dispatches a synchronous action and updates the state.
Returns the new state.
inherited
-
dispatchAsync(AsynchronousReduxAction<GlobalRedux, void, dynamic> action, {String? debugOrigin})
→ Future<void>
-
Dispatches an asynchronous action and updates the state.
Returns the new state.
inherited
-
dispatchAsyncTakeResult<R2>(BaseAsyncReduxActionWithResult<GlobalRedux, void, R2> action, {String? debugOrigin})
→ Future<R2>
-
Dispatches an asynchronous action and updates the state.
Returns only the result of the action.
inherited
-
dispatchAsyncWithResult<R2>(BaseAsyncReduxActionWithResult<GlobalRedux, void, R2> action, {String? debugOrigin})
→ Future<(void, R2)>
-
Dispatches an asynchronous action and updates the state.
Returns the new state along with the result of the action.
inherited
-
dispatchTakeResult<R2>(BaseReduxActionWithResult<GlobalRedux, void, R2> action, {String? debugOrigin})
→ R2
-
Dispatches an action and updates the state.
Returns only the result of the action.
inherited
-
dispatchWithResult<R2>(BaseReduxActionWithResult<GlobalRedux, void, R2> action, {String? debugOrigin})
→ (void, R2)
-
Dispatches an action and updates the state.
Returns the new state along with the result of the action.
inherited
-
emitMessage(String message)
→ void
-
Emits a message to the observer.
inherited
-
external<T2>(BaseReduxNotifier<T2> notifier)
→ Dispatcher<BaseReduxNotifier<T2>, T2>
-
Use this method to dispatch external actions within an action.
This ensures that the dispatched action has the correct
debugOrigin
.
inherited
-
internalSetup(Ref? ref, GlobalRedux notifier, RefenaObserver? observer)
→ void
-
inherited
-
internalWrapReduce()
→ Future<(void, R?)>
-
inherited
-
navigate()
→ Future<R?>
-
Override this method to implement your custom push action.
Access the NavigatorState with
ref.read(navigationProvider).key.currentState
.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
reduce()
→ Future<R?>
-
The method that returns the result.
inherited
-
toString()
→ String
-
A string representation of this object.
override
-
wrapReduce()
→ Future<R?>
-
Override this to have some logic before and after the reduce method.
Specifically, this method is called after
before
and before after:
before
-> wrapReduce -> after
inherited