RouteType class abstract
An abstraction of route types used by AutoRoutePage.onCreateRoute to decide transition animations
Constructors
- RouteType.adaptive({bool opaque, bool enablePredictiveBackGesture, RouteTransitionsBuilder? predictiveBackPageTransitionsBuilder})
-
Builds a AdaptiveRouteType route type
constfactory
- RouteType.cupertino()
-
Builds a CupertinoRouteType route type
constfactory
- RouteType.custom({RouteTransitionsBuilder? transitionsBuilder, CustomRouteBuilder? customRouteBuilder, @Deprecated('Use duration instead') int? durationInMilliseconds, @Deprecated('Use reverseDuration instead') int? reverseDurationInMilliseconds, Duration? duration, Duration? reverseDuration, bool opaque, bool barrierDismissible, String? barrierLabel, Color? barrierColor, bool enablePredictiveBackGesture, RouteTransitionsBuilder? predictiveBackPageTransitionsBuilder})
-
Builds a CustomRouteType route type
factory
- RouteType.material({bool enablePredictiveBackGesture, RouteTransitionsBuilder? predictiveBackPageTransitionsBuilder})
-
Builds a MaterialRouteType route type
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- opaque → bool
-
Whether the target Route should be opaque
see ModalRoute.opaque
final
- 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.
override