fire static method

Future<void> fire(
  1. String tag
)

Fires the callback associated with tag immediately. This does not cancel the debounce timer, so if you want to invoke the callback and cancel the debounce timer, you must first call fire(tag) and then cancel(tag).

Implementation

static Future<void> fire(String tag) {
  _operations[tag]?.$1.callback().then((_) {
    _operations[tag]?.$2.tryComplete();
    _operations.remove(tag);
  });

  return _operations[tag]?.$2.future ?? Future.value();
}