Page<T> class Null safety

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. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
key LocalKey?
The key associated with this page. [...]
final
name String?
The name of the route (e.g., "/settings"). [...]
final, inherited
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.
read-only, inherited

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page. [...]
copyWith({String? name, Object? arguments}) RouteSettings
Creates a copy of this route settings object with the given fields replaced with the new values.
inherited
createRoute(BuildContext context) Route<T>
Creates the Route that corresponds to this page. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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