goPage method

void goPage(
  1. int n
)

Implementation

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