childrenOfSegmentNamed method

List<RouteMatch> childrenOfSegmentNamed(
  1. String routeName
)

re

Implementation

List<RouteMatch> childrenOfSegmentNamed(String routeName) {
  return _findSegment(segments, (match) => match.name == routeName)
          ?.children ??
      const [];
}