hasActiveRouteBelow property

  1. @protected
bool get hasActiveRouteBelow

Whether there is at least one active route underneath this route.

Implementation

@protected
bool get hasActiveRouteBelow {
  if (_navigator == null) {
    return false;
  }
  for (final _RouteEntry entry in _navigator!._history) {
    if (entry.route == this) {
      return false;
    }
    if (_RouteEntry.isPresentPredicate(entry)) {
      return true;
    }
  }
  return false;
}