NyRouterRoute class

Constructors

NyRouterRoute({required String name, required NyRouteView view, NyArgument? defaultArgs, NyQueryParameters? queryParameters, List<RouteGuard>? routeGuards, PageTransitionType? pageTransitionType, PageTransitionSettings? pageTransitionSettings, dynamic initialRoute = false, dynamic authPage = false})

Properties

builder NyRouterRouteBuilder
getter/setter pair
defaultArgs NyArgument?
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
pageTransitionSettings PageTransitionSettings?
getter/setter pair
pageTransitionType ↔ PageTransitionType?
getter/setter pair
queryParameters NyQueryParameters?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
view NyRouteView
final

Methods

addRouteGuard(RouteGuard guard) NyRouterRoute
Add a route guard to the route.
addRouteGuards(List<RouteGuard> guards) NyRouterRoute
Add route guards to the route
authRoute() NyRouterRoute
Set the auth route.
getAuthRoute() bool
Get the auth route.
getInitialRoute() bool
Get the initial route.
getRouteGuards() List<RouteGuard>
Get the route guards.
initialRoute() NyRouterRoute
Set the initial route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transition(PageTransitionType transition) NyRouterRoute
Add a transition to the route.
transitionSettings(PageTransitionSettings settings) NyRouterRoute
Add a transition settings to the route.

Operators

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