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(this[key]?.children != null, "$key does not have children");
  return this[key]!.children!;
}