ModularRoute class abstract

Implementers

Constructors

ModularRoute(String name, {String schema = '', String parent = '', Module? module, required Uri uri, Map<Type, Module> innerModules = const {}, List<ModularRoute> children = const [], List<Middleware> middlewares = const []})

Properties

children → List<ModularRoute>
Add children to this route that can be retrieved through the parent route
final
hashCode → int
The hash code for this object.
no setterinherited
innerModules → Map<Type, Module>
Contains a list of all BindContexts that will need to be active when this route is active.
final
key ↔ ModularKey
Key that references the route in the RouteContext tree.
latefinal
middlewares → List<Middleware>
Adds middleware that will be shared among your children.
final
module ↔ Module?
Module belonging to the route.
getter/setter pair
name → String
name of route
final
parent → String
guard your parent's path
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → String
schema of route default is ''
final
uri ↔ Uri
latefinal

Methods

addModule(String name, {required Module module}) → ModularRoute
Create a new Route by adding a RouteContext to the context.
addParent(ModularRoute parent) → ModularRoute
copyWith({String? name, String? schema, List<ModularRoute>? children, List<Middleware>? middlewares, Map<Type, Module>? innerModules, Uri? uri, String? parent, Module? module}) → ModularRoute
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