ignoreWhile static method

void ignoreWhile(
  1. 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;
}