pop method
Implementation
bool pop() {
if (!state.canPopShell) return false;
final nextHistory = state.history.sublist(0, state.history.length - 1);
final pane = state.paneByKey(nextHistory.last);
state = state.copyWith(
history: nextHistory,
currentPane: pane,
);
return pane != null;
}