goPage method
Implementation
void goPage(int n) {
if (routes[n].path == _currentRoute!.path) return;
navigatorKey.currentState!.pushReplacementNamed(routes[n].path);
notifyListeners();
}
void goPage(int n) {
if (routes[n].path == _currentRoute!.path) return;
navigatorKey.currentState!.pushReplacementNamed(routes[n].path);
notifyListeners();
}