closeAll method
Tell all the modals to close in reverse order.
Implementation
Future<void> closeAll() async {
for (var modal in _stack.reversed.toList()) {
await modal.close();
}
}
Tell all the modals to close in reverse order.
Future<void> closeAll() async {
for (var modal in _stack.reversed.toList()) {
await modal.close();
}
}