ignoreWhile static method
void
ignoreWhile(
- dynamic closure()
Implementation
static void ignoreWhile(dynamic Function() closure) async {
_ignoreEvent = true;
try {
final result = closure();
if (result is Future) await result;
} catch (e) {
_ignoreEvent = false;
rethrow;
}
_ignoreEvent = false;
}