MorpheusRouteArguments class

Creates an object with properties needed for the MorpheusPageRoute class.

This class can be used to pass a parentKey to a MorpheusPageRoute when using named routes.

This class can be extended with whatever other arguments you want to pass to a route.

{@tool sample}

final parentKey = GlobalKey();
Navigator.of(context).pushNamed(
  '/profile',
  arguments: MorpheusRouteArguments(
    parentKey: parentKey,
  ),
);

{@end-tool}

See also:

Constructors

MorpheusRouteArguments({GlobalKey<State<StatefulWidget>>? parentKey, Color scrimColor = Colors.black45, BorderRadiusGeometry? borderRadius, Color? transitionColor, bool transitionToChild = true, bool scaleChild = true})
const

Properties

borderRadius BorderRadiusGeometry?
Defines the initial border-radius of the transition.
final
hashCode int
The hash code for this object.
no setterinherited
parentKey GlobalKey<State<StatefulWidget>>?
A GlobalKey that is used to calculate the transition so that it looks like the element that parentKey is attached to turns into a new page with the contents of a MorpheusPageRoute.builder.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleChild bool
Defines whether the animation should scale in the contents of builder or not.
final
scrimColor Color
The color of the overlay that covers the content behind the transition.
final
transitionColor Color?
The color that is used when transitioning from the parent element to the contents of builder.
final
transitionToChild bool
Defines whether the animation should transition from a temporary widget into the contents of builder or not.
final

Methods

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