getNavKeyFromRouteInfo method

Key getNavKeyFromRouteInfo(
  1. RouteInfo routeInfo
)

Implementation

Key getNavKeyFromRouteInfo(RouteInfo routeInfo) {
  return nestedRoutes.entries
      .singleWhereOrNull((element) => element.value.contains(routeInfo))!
      .key
      .key;
}