hideAll method
void
hideAll()
Hides all active dialogs in the stack.
Implementation
void hideAll() {
try {
for (_DialogEntry element in _dialogsStack) {
element.overlayEntry?.remove();
element.overlayEntry?.dispose();
}
_dialogsStack.clear();
} on CustomException {
rethrow;
} catch (e, s) {
throw CustomException(
message: 'An error occurred while hiding all dialogs.',
hiddenMessage: '{\ne: $e\ns:$s\n}',
);
}
}