LaamsPage<T> class

A page that extends Page with a custom PageRouteBuilder

The type T specifies the return type of the route which can be supplied as the route is popped from the stack via Navigator.transitionDelegate by providing the optional result argument to the RouteTransitionRecord.markForPop in the TransitionDelegate.resolve.

See also:

Inheritance

Properties

animationDuration int
Page Transition and Reverse Transition Animations in miliseconds
final
animationType AnimationType
While transiationing from page to the other
final
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
barrierDismissible bool
Whether you can dismiss this route by tapping the modal barrier. The modal barrier is the scrim that is rendered behind each route, which generally prevents the user from interacting with the route below the current route, and normally partially obscures such routes.
final
barrierLabel String?
If the barrier is dismissible, this label will be read out if accessibility tools (like VoiceOver on iOS) focus on the barrier.
final
child Widget
The screen which LaamsPage<T> wraps around.
final
fullscreenDialog bool
Has no effect, since transition animation is set manually by AnimationType
final
hashCode int
The hash code for this object.
no setterinherited
key LocalKey?
The key associated with this page.
finalinherited
maintainState bool
By default, when the created route is replaced by another, the previous route remains in memory. To free all the resources when this is not necessary, set maintainState to false.
final
name String?
The name of the route (e.g., "/settings").
finalinherited
opaque bool
Whether the route obscures previous routes when the transition is complete. When an opaque route's entrance transition is complete, the routes behind the opaque route will not be built to save resources.
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

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

Static Methods

fromRoute<T>(LaamsRoute route, Widget child) LaamsPage<T>