RouteCollection class
Holds a single set of config-entries
it makes accessing routes by name easier by creating a Map on init
it also has some helper-methods and getters to deal with config-entries
Mainly used by RouteMatcher
Constructors
-
RouteCollection.fromList(List<
AutoRoute> routes, {bool root = false}) -
Creates a Map of config-entries from
routes
factory
Properties
Methods
-
containsKey(
String key) → bool -
Helper to check if a route name exists inside of
_routesMap
-
findPathTo(
String routeName) → List< AutoRoute> - Finds the track to a certain route in the routes-tree
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subCollectionOf(
String key) → RouteCollection -
Returns the sub route-entries of the route corresponding with
key
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
String key) → AutoRoute? -
Helper to get the route-entry corresponding to
key