onModalClosed method
Should be triggered when modal
is closed.
Implementation
void onModalClosed(Modal modal) {
assert(_stack.last == modal);
if (_stack.last == modal) {
_stack.removeLast();
if (_stack.isNotEmpty) {
_stack.last.hidden = false;
}
} else {
_stack.remove(modal);
}
}