pop method
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();
}
remove last page in stack pages removeLast-if stack have one page remove this page and build initial page
void pop({bool removeLast = false}) {
currentState = backState(removeLast: removeLast);
notifyListeners();
}