isNestedRoute method

NestedNavigator? isNestedRoute(
  1. RouteInfo? routeInfo
)

Implementation

NestedNavigator? isNestedRoute(RouteInfo? routeInfo) {
  return nestedRoutes.entries
      .singleWhereOrNull((element) => element.value.contains(routeInfo))
      ?.key;
}