AppRoutes<H extends AppRoute> class

Constructors

AppRoutes([Map<String, dynamic>? parsers])

Properties

definitions RouteDefinitions
final
hashCode int
The hash code for this object.
no setterinherited
parsers Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

definitionOf(AppRoute route) RouteDefinition<AppRoute>
error({PageBuilder<ErrorRoute>? page, ViewBuilder<ErrorRoute>? view}) → void
guard({required GuardFunction<AppRoute> onGuard, dynamic guarded(GuardedRoutes routes)?}) GuardedRoutes
home({HomeRedirect? show, PageBuilder<H>? page, ViewBuilder<H>? view}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notFound({PageBuilder<NotFoundRoute>? page, ViewBuilder<NotFoundRoute>? view}) → void
orElse(ViewBuilder<NotFoundRoute> onBuild) → void
orError(ViewBuilder<ErrorRoute> onBuild) → void
page<T extends AppRoute>(String path, PageBuilder<T> onBuild, {GuardFunction<T>? onGuard, PopFunction<AppRoute>? onPop}) → void
redirect(String from, String to) → void
resolvedRouteOf(AppRoute route) AppRoute
toString() String
A string representation of this object.
inherited
view<T extends AppRoute>(String path, ViewBuilder<T> onBuild, {GuardFunction<T>? onGuard, PopFunction<T>? onPop}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited