RouterConfig<T> class

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 backButtonDispatcher, routeInformationProvider, and routeInformationProvider are optional.

The routeInformationProvider and routeInformationParser must both be provided or both 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.
no setterinherited
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.
no setterinherited

Methods

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