CustomRouteType class
Generates a route with user-defined transitions
Constructors
- CustomRouteType({CustomRouteBuilder? customRouteBuilder, String? barrierLabel, Color? barrierColor, RouteTransitionsBuilder? transitionsBuilder, int? durationInMilliseconds, int? reverseDurationInMilliseconds, bool opaque = true, bool barrierDismissible = false})
-
Default constructor
const
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 - durationInMilliseconds → int?
-
route transition duration in milliseconds
is passed to PageRouteBuilder
this property is ignored unless a
transitionBuilder
is providedfinal - hashCode → int
-
The hash code for this object.
no setteroverride
- opaque → bool
-
Whether the target Route should be opaque
see ModalRoute.opaque
finalinherited
- reverseDurationInMilliseconds → int?
-
route reverse transition duration in milliseconds
is passed to PageRouteBuilder
this property is ignored unless a
transitionBuilder
is providedfinal - 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