flattened property

List<RouteMatch> get flattened

Returns a flattened list of this match and it's sub-matches e.g if we have = RouteMatch1[RouteMatch2RouteMatch3] the result is RouteMatch1,RouteMatch2,RouteMatch3

Implementation

List<RouteMatch> get flattened {
  return [this, if (hasChildren) ...children!.last.flattened];
}