PagePath class

Describes a location within the app, corresponds to location + state. Can be used to navigate to a page recovering its state. Subclass this for your pages' paths.

Constructors

PagePath({String? key, String? factoryKey, Map<String, dynamic> state = const {}})
const

Properties

defaultStackConfiguration PageStackConfiguration
What pages to show when navigating directly to this path.
no setter
defaultStackKey String
no setter
defaultStackPaths List<PagePath>
What pages to show when navigating directly to this path.
no setter
defaultStacksConfiguration PageStacksConfiguration
no setter
factoryKey String?
The key to pass to your page factory to create a new page. This happens when recovering page stack on navigation.
no setter
hashCode int
The hash code for this object.
no setterinherited
key String?
The key to compare with to PAbstractPage.key to decide if the state is applicable to a page in a stack.
final
location String
Returns the path of the page to be a part of the URL.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Map<String, dynamic>
All the parameters that are needed to re-create the page.
final
uri Uri
Parses location into a Uri.
no setter

Methods

getUriAtBase(Uri baseUri) Uri
The full Uri with schema, domain, port, etc. taken from baseUri.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>?
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMaps(List maps) List<PagePath>
toJsons(Iterable<PagePath?> pcs) List<Map<String, dynamic>?>