CustomRouteType class

Generates a route with user-defined transitions

Inheritance
Mixed-in types

Constructors

CustomRouteType({CustomRouteBuilder? customRouteBuilder, String? barrierLabel, Color? barrierColor, RouteTransitionsBuilder? transitionsBuilder, bool opaque = true, bool barrierDismissible = false, bool enablePredictiveBackGesture = false, RouteTransitionsBuilder? predictiveBackPageTransitionsBuilder, @Deprecated('Use duration instead') int? durationInMilliseconds, @Deprecated('Use reverseDuration instead') int? reverseDurationInMilliseconds, Duration? duration, Duration? reverseDuration})
Default constructor

Properties

barrierColor → Color?
passed to the barrierColor property in PageRouteBuilder
final
barrierDismissible → bool
passed to the barrierDismissible property in PageRouteBuilder
final
barrierLabel → String?
passed to the barrierLabel property in PageRouteBuilder
final
customRouteBuilder → CustomRouteBuilder?
this builder function is passed to customRouteBuilder property in CustomPage
final
duration → Duration?
route transition duration is passed to PageRouteBuilder this property is ignored unless a transitionBuilder is provided
final
enablePredictiveBackGesture → bool
Whether to enable predictive back gesture on Android
final
hashCode → int
The hash code for this object.
no setteroverride
opaque → bool
Whether the target Route should be opaque see ModalRoute.opaque
finalinherited
predictiveBackPageTransitionsBuilder → RouteTransitionsBuilder?
The transitions builder to use for when the predictive back gesture is in progress
final
reverseDuration → Duration?
route reverse transition duration is passed to PageRouteBuilder this property is ignored unless a transitionBuilder is provided
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transitionsBuilder → RouteTransitionsBuilder?
this builder function is passed to the transition builder function in PageRouteBuilder
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.
override