replaceAllNamed method

Future replaceAllNamed(
  1. List<String> routeNames
)

Implementation

Future replaceAllNamed(List<String> routeNames) async {
  for (var name in routeNames) {
    if (!await _validate(name)) {
      return;
    }
  }
  _routeStack.clear();
  _routeStack.addAll(routeNames);
  notifyListeners();
}