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})
Default constructor

Properties

allowSnapshotting → bool
Whether the built route should allow snapshotting Passed To PageRoute.allowSnapshotting
no setter
arguments → Object?
The arguments passed to this route.
finalinherited
canPop → bool
When false, blocks the associated route from being popped.
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
onPopInvoked → PopInvokedWithResultCallback<T>
Called after a pop on the associated route was handled.
no setteroverride
opaque → bool
Whether the built route should be opaque Passed To PageRoute.opaque
no setter
restorationId → String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
routeData → RouteData
The Route Data that's used to build the page
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