RoutebornPage class abstract

This is the base Page type used for defining pages when using the routeborn package.

Inheritance

Constructors

RoutebornPage(String name, {dynamic pageArgs})
Use this constructor in case you need to initialize the builder later (for the purpose of accessing the page instance).
RoutebornPage.builder(String name, WidgetBuilder builder, {dynamic pageArgs})
Use this constructor in case you can initialize the builder in the app_initialization list (no need for page instance). pageArgs parameter is used to distinguish each page instance

Properties

arguments Object?
The arguments passed to this route.
finalinherited
builder WidgetBuilder
no getter
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
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
Creates the Route that corresponds to this page.
override
getPageName(BuildContext context) → Either<ValueListenable<String?>, String>
Get name of the page.
getPagePath() String
This is used to fill URL with the page path base and arguments.
getPagePathBase() String
This is only the page path base. E.g. pagePath = /smth/1 The page path base is the one without arguments as following = /smth/
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