subCollectionOf method

RouteCollection subCollectionOf(
  1. String key
)

Returns the sub route-entries of the route corresponding with key

Throws and error if corresponding route has not children

Implementation

RouteCollection subCollectionOf(String key) {
  assert(_subCollections[key] != null, "$key does not have children");
  return _subCollections[key]!;
}