PAbstractPage<P extends PagePath, R> class abstract

The base page class for this package.

P is the base class for all app's page paths. R is the result returned when the page pops.

key is narrowed down to ValueKey of String because we need to compare it to string keys in paths.

Inheritance
Implementers

Constructors

PAbstractPage()

Properties

arguments Object?
The arguments passed to this route.
finalinherited
completer Completer<R?>
no setter
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setter
key ValueKey<String>?
The key associated with this page.
no setteroverride
name String?
The name of the route (e.g., "/settings").
finalinherited
path → P?
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
state PPageStateMixin<P, R>?
no setter

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page.
inherited
createPopEvent({required R? data, required PopCause cause}) PagePopEvent<R>
Creates PagePopEvent.
createRoute(BuildContext context) Route
Creates the Route that corresponds to this page.
inherited
dispose() → void
getFactoryKey() String?
The key to re-create this page with factory when recovering state.
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