RouteStore class
Stores ControlRoute by identifier key - RouteStore.routeIdentifier. Instance of RouteStore is stored in ControlFactory -> 'Control.get
Typically not used directly, but via framework:
- fill routes: Control.initControl or add routes directly.
- retrieve route: ControlRoute.of.
Constructors
-
RouteStore([List<
ControlRoute> ? routes]) - Stores Routes with their Identifiers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- routing ↔ RoutingProvider
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addRoute<
T> (ControlRoute route) → String? -
Adds given
route
to RouteStore. Returns store key. -
addRoutes(
List< ControlRoute> routes) → void - Adds ControlRoute one by one to RouteStore.
-
getRoute<
T> ([dynamic identifier]) → ControlRoute? -
Returns ControlRoute of given Type or
identifier
- check RouteStore.routeIdentifier for more info about Store keys. -
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
Static Methods
-
routeIdentifier<
T> ([dynamic value]) → String -
Resolves identifier for given route Type and
name
. Similar to ControlFactory.keyOf, but also accepts String as validvalue
key. This method is mainly used by framework to determine identifier of ControlRoute stored in RouteStore. -
routePathIdentifier<
T> ({dynamic identifier, dynamic path, dynamic args}) → String -
Alters given
identifier
withpath
. -
routePathMask(
String path) → RouteMask