removeLastUri method

void removeLastUri()

remove the last Uri and the corresponding Page

Implementation

void removeLastUri() {
  final page = _pages.removeLast();
  final uri = _uris.removeLast();
  if (kIsWeb) {
    VxNav.replaceUrl(uri);
  }
  if (observers != null) {
    for (final observer in observers!) {
      observer.didChangeRoute(uri, page, "pop");
    }
  }
  notifyListeners();
}