containsGlobalRoute method

bool containsGlobalRoute(
  1. Object routeName
)

Checks if global navigator contains given route

Implementation

bool containsGlobalRoute(Object routeName) {
  return navigationStack.globalNavigationStack.stack
          .indexWhere((element) => element.name == routeName) !=
      -1;
}