flattened property

List<RouteMatch> flattened

Implementation

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