pop method

void pop({
  1. bool removeLast = false,
})

remove last page in stack pages removeLast-if stack have one page remove this page and build initial page

Implementation

void pop({bool removeLast = false}) {
  currentState = backState(removeLast: removeLast);
  notifyListeners();
}