toNamed method

void toNamed(
  1. String name, {
  2. Object? arguments,
})

Implementation

void toNamed(String name, {Object? arguments}) {
  final map = _maps[name];
  if (map != null) {
    _currentMap = map;
    _arguments = arguments;
    notifyListeners();
  }
}