AutoRoutePage<T> class

Creates a RoutePage based on routeData.type, The decision happens inside of onCreateRoute

Inheritance

Constructors

AutoRoutePage({required RouteData routeData, required Widget child, LocalKey? key})
Default constructor

Properties

arguments Object?
The arguments passed to this route.
finalinherited
child Widget
The widget passed to the route
no setter
fullscreenDialog bool
Whether to treat the built route as a fullscreenDialog. Passed To PageRoute.fullscreenDialog
no setter
hashCode int
The hash code for this object.
no setterinherited
key LocalKey?
The key associated with this page.
finalinherited
maintainState bool
Whether the built route should maintain it's state. Passed To PageRoute.maintainState
no setter
name String?
The name of the route (e.g., "/settings").
finalinherited
opaque bool
Whether the built route should be opaque Passed To PageRoute.opaque
no setter
popped Future<T?>
The pop completer that's used in navigation actions e.g StackRouter.push it completes when the built route is popped
no setter
restorationId String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
routeData RouteData
final
routeKey LocalKey
The key that's used to decide whether This page can be updated or not used by canUpdate
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildPage(BuildContext context) Widget
Builds a the widget that's scoped with routeData
canUpdate(Page other) bool
Whether this page can be updated with the other page.
override
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCreateRoute(BuildContext context) Route<T>
Creates a PageRoute variant based on routeData.type
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited