Page<T> class abstract

Describes the configuration of a Route.

The type argument T is the corresponding Route's return type, as used by Route.currentResult, Route.popped, and Route.didPop.

See also:

Inheritance
Implementers

Constructors

Page({LocalKey? key, String? name, Object? arguments, String? restorationId})
Creates a page and initializes key for subclasses.
const

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.
final
name String?
The name of the route (e.g., "/settings").
finalinherited
restorationId String?
Restoration ID to save and restore the state of the Route configured by this page.
final
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.
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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