RouteConfig class

Class for recording the routing.

Basically, it is used in UIMaterialApp and InternalPageHookWidget.

Constructors

RouteConfig(WidgetBuilder builder, {bool fullScreen = false, dynamic parameters = const {}, PageTransition transition = PageTransition.initial, bool additional = false, Map<String, bool Function()> reroute = const {}, Map<RoutePlatform, WidgetBuilder> platform = const {}})
Class for recording the routing.

Properties

additional bool
True for pages that add new elements.
final
builder WidgetBuilder
Route builder.
final
fullScreen bool
True to launch in full screen.
final
hashCode int
The hash code for this object.
no setterinherited
parameters → dynamic
Parameter to add when switching pages.
final
platform Map<RoutePlatform, WidgetBuilder>
Route definitions by platform.
final
reroute Map<String, bool Function()>
Map for rerouting according to conditions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transition PageTransition
Transition animation.
final

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

Static Properties

isInitialized bool
True if the config has been initialized.
no setter

Static Methods

addRoutes(Map<String, RouteConfig> configs) → void
Add the routes.
onGenerateRoute(RouteSettings settings, {String? authenticationRoute, bool onCheckAuthentication(BuildContext context)?}) Route?
From settings, create Route.
onSingleRoute(RouteSettings settings, RouteConfig config) Route?
Create a new Route with config and settings.
removeRoutes(Map<String, RouteConfig> configs) → void
Remove the routes.