replaceNamed method

Future replaceNamed(
  1. String name
)

Implementation

Future replaceNamed(String name) async {
  if (!await _validate(name)) {
    return;
  }
  _routeStack.removeLast();
  _routeStack.add(name);
  notifyListeners();
}