StandardCustomPage<R, E> class

Implements functionality to extend Page and create a customized StandardPageWithResult.

This class includes the standardPageKey property for accessing the page's key and the factoryObject property for obtaining an object of the StandardPageWithResult class.

R represents the type of the page's result. E represents the type of the value that the page returns.

Inheritance
Implemented types

Constructors

StandardCustomPage.new({LocalKey? key, String? name, Object? arguments, String? restorationId, bool maintainState = true, bool barrierDismissible = false, Color? barrierColor, String? barrierLabel, Curve barrierCurve = Curves.ease, bool opaque = true, Duration transitionDuration = const Duration(milliseconds: 300), required GlobalKey<StandardPageWithResult<R, E>> standardPageKey, required StandardPageWithResultFactory<StandardPageWithResult<Object?, Object?>, Object?, Object?> factoryObject, Widget transitionBuilder(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child)?, required Widget child})
Create a StandardCustomPage
const

Properties

arguments Object?
The arguments passed to this route.
finalinherited
barrierColor Color?
The color to use for the modal barrier. If this is null, the barrier will be transparent.
final
barrierCurve Curve
final
barrierDismissible bool
Whether you can dismiss this route by tapping the modal barrier.
final
barrierLabel String?
The semantic label used for a dismissible barrier.
final
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.
final
factoryObject StandardPageWithResultFactory<StandardPageWithResult<Object?, Object?>, Object?, Object?>
The factory class that created this page.
final
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.
final
name String?
The name of the route (e.g., "/settings").
finalinherited
onPopInvoked PopInvokedWithResultCallback<void>
Called after a pop on the associated route was handled.
finalinherited
opaque bool
final
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.
final
transitionBuilder Widget Function(BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child)?
An animated builder process used when transitioning to this page.
final
transitionDuration Duration
final

Methods

canUpdate(Page other) bool
Whether this page can be updated with the other page.
inherited
createRoute(BuildContext context) Route<R>
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