pop method

  1. @override
void pop()
override

Pop the top most route

Implementation

@override
void pop() {
  if (navStack.length > 1) {
    navStack.removeLast();
  }
  notifyListeners();
}