RouterConfig<T> class
Null safety
A convenient bundle to configure a Router widget.
To configure a Router widget, one needs to provide several delegates, RouteInformationProvider, RouteInformationParser, RouterDelegate, and BackButtonDispatcher. This abstract class provides way to bundle these delegates into a single object to configure a Router.
The routerDelegate must not be null. The backButtonDispatcher, routeInformationProvider, and routeInformationProvider are optional.
The routeInformationProvider and routeInformationParser must both be provided or not provided.
Constructors
-
RouterConfig({RouteInformationProvider? routeInformationProvider, RouteInformationParser<
T> ? routeInformationParser, required RouterDelegate<T> routerDelegate, BackButtonDispatcher? backButtonDispatcher}) -
Creates a RouterConfig.
const
Properties
- backButtonDispatcher → BackButtonDispatcher?
-
The BackButtonDispatcher that is used to configure the Router.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
routeInformationParser
→ RouteInformationParser<
T> ? -
The RouteInformationParser that is used to configure the Router.
final
- routeInformationProvider → RouteInformationProvider?
-
The RouteInformationProvider that is used to configure the Router.
final
-
routerDelegate
→ RouterDelegate<
T> -
The RouterDelegate that is used to configure the Router.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited