pop method
Removes the top-most Page from the stack i.e. navigate back one page.
Implementation
bool pop() {
if (state.length > 1) {
emit(
state.take(state.length - 1).toList(),
);
return true;
} else {
return false;
}
}