RouteInformationParser<T> class
Null safety
A delegate that is used by the Router widget to parse a route information into a configuration of type T.
This delegate is used when the Router widget is first built with initial route information from Router.routeInformationProvider and any subsequent new route notifications from it. The Router widget calls the parseRouteInformation with the route information from Router.routeInformationProvider.
One of the parseRouteInformation or parseRouteInformationWithDependencies must be implemented, otherwise a runtime error will be thrown.
Constructors
- RouteInformationParser()
-
Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- 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
-
parseRouteInformation(
RouteInformation routeInformation) → Future< T> - Converts the given route information into parsed data to pass to a RouterDelegate.
-
parseRouteInformationWithDependencies(
RouteInformation routeInformation, BuildContext context) → Future< T> - Converts the given route information into parsed data to pass to a RouterDelegate.
-
restoreRouteInformation(
T configuration) → RouteInformation? - Restore the route information from the given configuration.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited