RouteAnimationHelper class

Helper class to generate an Animated Route for Screens transition

currentPage (Mandatory only for AnimType.cubic).

destination (Mandatory) - The Page Widget you would like to navigate to.

curve (Optional) - The curve type - default value is set to Curves.ease

animType (Optional) - The type of anim to apply on the AnimatedRoute AnimType default value is set to AnimType.slideStart

duration (Optional) - The duration of the screen transition in milliseconds, default value is set to 450.

cubicBackgroundColor (Optional) - The background color for the cubic animation - default value: Colors.white

Constructors

RouteAnimationHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

createRoute({required BuildContext buildContext, Widget? currentPage, required Widget destination, Curve curve = Curves.ease, AnimType animType = AnimType.slideStart, int duration = DEFAULT_TRANSITION_DURATION, Color cubicBackgroundColor = Colors.white}) Route

Constants

DEFAULT_TRANSITION_DURATION → const int