StudioPage<T> class

The router's page for a route pushed over a root: its screen slid in on its rails in Studio's way (StudioPageTransitionsBuilder), the page it covers dimming; going back is the reverse. On iOS it pops with iOS's swipe back from the leading edge too. A go_router route's pageBuilder returns it with the route's state.pageKey.

StudioPage<void>(key: state.pageKey, child: const EpisodePage())
Inheritance

Constructors

StudioPage({required Widget child, bool fullscreenDialog = false, LocalKey? key, String? name, Object? arguments, String? restorationId})
A page of child.
const

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's screen, usually a StudioScreen.
final
fullscreenDialog → bool
Whether it is raised as a whole-screen dialog (rising from below), closed rather than gone back from.
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 other page.
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