pop method

void pop()

Removes the topmost element from the path, popping back one screen.

Implementation

void pop() {
  if (_stack.isNotEmpty) {
    _stack.removeLast();
    notifyListeners();
  }
}