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(Map<String, AutoRoute> _routesMap)
Default constructor
RouteCollection.fromList(List<AutoRoute> routes, {bool root = false})
Creates a Map of config-entries from routes
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
routes Iterable<AutoRoute>
Returns the values of _routesMap as iterable
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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