ExpressivePage<T> class
The go_router Page for a route pushed off a root, keyed by go_router's
page key. The page's chrome is derived, never authored: a screen inside
reads the pushed register (RoutePresentation.of) from the route's place.
On Android the push is fade-forwards and the back gesture predictive; on iOS the push is the Cupertino slide and the back gesture the edge swipe; everywhere else (macOS, Windows, Linux, the web) the push is fade-forwards.
- Inheritance
-
- Object
- RouteSettings
- Page<
T> - ExpressivePage
Constructors
Properties
- arguments → Object?
-
The arguments passed to this route.
finalinherited
- canPop → bool
-
When false, blocks the associated route from being popped.
finalinherited
- child → Widget
-
The page.
final
- 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
-
onPopInvoked
→ PopInvokedWithResultCallback<
T> -
Called after a pop on the associated route was handled.
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
otherpage.inherited -
createRoute(
BuildContext context) → Route< T> -
Creates the Route that corresponds to this page.
override
-
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
Constants
- cupertinoDuration → const Duration
-
The iOS push and pop clock: the Cupertino page slide, 500 ms
(
CupertinoRouteTransitionMixin.kTransitionDuration). - fadeForwardsDuration → const Duration
-
The fade-forwards push and pop clock (every platform but iOS): AOSP's
activity transition, 450 ms (
activity_open_enter.xmland its three siblings, android-37.2). - predictiveBackEasing → const Curve
-
Compose's
PredictiveBack.transform(material3internal/BackHandler.kt):CubicBezierEasing(0.1f, 0.1f, 0f, 1f), a back gesture's progress as the page, a sheet or a search bar follows it. A progress mapping, not a clock; the one copy page, sheet and app bar share.