RedirectingPage<T> mixin

Marks a page as not being navigable to directly. It cannot be the top-level page, and if navigated to directly will redirect to a child page.

If the router tries to show this page as the top page, it'll redirect to redirectPath.

For example, you could have a set of tabs at /home, with the first tab being /home/profile. If the user tries to navigate to /home, they'll be redirected to /home/profile.

Superclass Constraints
Mixin Applications

Properties

arguments Object?
The arguments passed to this route.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key LocalKey?
The key associated with this page.
finalinherited
name String?
The name of the route (e.g., "/settings").
finalinherited
redirectPath String
The path of a child route to redirect to.
no setter
restorationId String?
Restoration ID to save and restore the state of the Route configured by this page.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page.
inherited
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page.
inherited
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