clear method

void clear()

Clears all callbacks.

Implementation

void clear() {
  if (this._queue.isNotEmpty) {
    Here().debugLogAlert(
      'Do not clear callbacks while callbacks are executing. Call wait() first.',
    );
  }
  this._callbacks.clear();
}