NavigationMiddleware<T> class

Intercepts all dispatched NavigateToAction in the Store and performs the navigation on the currentState of NavigatorHolder.navigatorKey.

It can perform either a replace, a push, a pushNamedAndRemoveUntil a pop, or a popUntil navigation action. Prerequisite is to have register the appropriate navigation paths in onGenerateRoute method passed to MaterialApp.

Constructors

const

Properties

currentState NavigatorState?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Store<T> store, dynamic action, NextDispatcher next) → void
A Middleware function that intercepts a dispatched action
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