pop method
Removes a widget from the stack.
Implementation
@override
void pop() {
if (_stack.isNotEmpty) {
onRenderScreen.value = false;
_stack.removeLast();
notifyListeners();
} else {
throw Exception('The stack is empty. No widget to pop.');
}
}