CustomAutoRouter class

Defaults created routes to PageRouteBuilder unless overridden by AutoRoute

Inheritance

Constructors

CustomAutoRouter({Function? transitionsBuilder, bool barrierDismissible = false, int? durationInMilliseconds, int? reverseDurationInMilliseconds, Function? customRouteBuilder, bool opaque = true, required List<AutoRoute> routes, bool preferRelativeImports = true, String? replaceInRouteName})
const

Properties

barrierDismissible bool
passed to the barrierDismissible property in PageRouteBuilder
final
customRouteBuilder Function?
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 provided
final
hashCode int
The hash code for this object.
no setterinherited
opaque bool
passed to the opaque property in PageRouteBuilder
final
preferRelativeImports bool
if true relative imports will be generated when possible defaults to true
finalinherited
replaceInRouteName String?
Auto generated route names can be a bit long with the Route suffix e.g ProductDetailsPage would be ProductDetailsPageRoute
finalinherited
reverseDurationInMilliseconds int?
route reverse transition duration in milliseconds is passed to PageRouteBuilder this property is ignored unless a transitionBuilder is provided
final
routes List<AutoRoute>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transitionsBuilder Function?
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.
inherited