dismissTopDialog static method
Implementation
static Future<void> dismissTopDialog({int? count}) async {
if (count != null && count > 0) {
for (int i = 0; i < count; i++) {
await dismissDialog(_list().isNotEmpty ? _list().last : null);
}
return;
}
await dismissDialog(_list().isNotEmpty ? _list().last : null);
}