StandardMaterialPage<R extends Object?, E extends Object?> class
A Page implementation that creates a Material-styled route.
This class includes the standardPageKey property for accessing the page's key
and the factoryObject property for obtaining the factory that created this page.
R represents the type of page data.
E represents the type of the value that the page returns.
- Inheritance
-
- Object
- RouteSettings
- Page<
E> - StandardMaterialPage
- Implemented types
-
- StandardPageInterface<
R, E>
- StandardPageInterface<
Constructors
-
StandardMaterialPage({LocalKey? key, String? name, Object? arguments, String? restorationId, required GlobalKey<
StandardPageWithResult< standardPageKey, required StandardPageWithResultFactory<R, E> >StandardPageWithResult< factoryObject, required Widget child})Object?, Object?> , Object?, Object?> -
Create a StandardMaterialPage
const
Properties
- allowSnapshotting → bool
-
Whether the route transition will prefer to animate a snapshot of the
entering/exiting routes.
finalinherited
- arguments → Object?
-
The arguments passed to this route.
finalinherited
- canPop → bool
-
When false, blocks the associated route from being popped.
finalinherited
- child → Widget
-
The content to be shown in the Route created by this page.
finalinherited
-
factoryObject
→ StandardPageWithResultFactory<
StandardPageWithResult< Object?, Object?> , Object?, Object?> -
The factory class that created this page.
finalinherited
- fullscreenDialog → bool
-
Whether this page route is a full-screen dialog.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → LocalKey?
-
The key associated with this page.
finalinherited
- maintainState → bool
-
Whether the route should remain in memory when it is inactive.
finalinherited
- name → String?
-
The name of the route (e.g., "/settings").
finalinherited
-
onPopInvoked
→ PopInvokedWithResultCallback<
E> -
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
-
standardPageKey
→ GlobalKey<
StandardPageWithResult< R, E> > -
The page key for the corresponding
StandardPageWithResult.finalinherited
Methods
-
canUpdate(
Page other) → bool -
Whether this page can be updated with the
otherpage.inherited -
createRoute(
BuildContext context) → Route< E> -
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