CustomRouter class

Defaults created routes to PageRouteBuilder unless overridden by AutoRoute annotation

Inheritance

Constructors

CustomRouter({Function? transitionsBuilder, bool? barrierDismissible, int? durationInMilliseconds, int? reverseDurationInMilliseconds, bool? opaque, bool? generateNavigationHelperExtension, String? routesClassName, String? pathPrefix, required List<StackedRoute> routes, bool preferRelativeImports = true, String? replaceInRouteName, bool? deferredLoading})
const

Properties

barrierDismissible bool?
passed to the barrierDismissible property in PageRouteBuilder
final
deferredLoading bool
Use for web for lazy loading other routes more info https://dart.dev/guides/language/language-tour#deferred-loading
finalinherited
durationInMilliseconds int?
route transition duration in milliseconds is passed to PageRouteBuilder this property is ignored unless a transitionBuilder is provided
final
generateNavigationHelperExtension bool?
finalinherited
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 transition reverse duration in milliseconds is passed to PageRouteBuilder
final
routePrefix String?
finalinherited
routes List<StackedRoute>
finalinherited
routesClassName String?
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