RouterConfiguration class
- Mixed-in types
Constructors
-
RouterConfiguration(List<
NavigationPath> paths, {List<NamedPath> ? namedPaths, })
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastGeneratedRoute → Route?
-
no setteroverride
-
final
-
namedPaths
→ Map<
String, NamedPath> -
List of NamedPath for route matching converted to a map of String to NamedPath. When a named route is pushed with
Navigator.pushNamed, the route name from settings is used to match with NamedPath.pathName from this map to
retrieve builder.
final
-
final
-
no setteroverride
-
paths
→ List<
NavigationPath> -
List of NavigationPath for route matching. When a named route is pushed with
Navigator.pushNamed, the route name is matched with the NavigationPath.matcher
in the list below. As soon as there is a match, the associated builder
will be returned. This means that the paths higher up in the list will
take priority.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
inherited
-
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGenerateRoute(
RouteSettings settings) → Route? - The route generator callback used when the app is navigated to a named route. Set it on the MaterialApp.onGenerateRoute or WidgetsApp.onGenerateRoute to make use of the paths for route matching.
-
onUnknownRoute(
RouteSettings settings) → Route? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited