remove method

bool remove(
  1. dynamic callbackKey
)

Removes the appropriate callback.

  • callbackKey Specify which callback to remove.

Returns true if the callback was found and removed, otherwise false.

Implementation

bool remove(dynamic callbackKey) {
  if (this._queue.isNotEmpty) {
    Here().debugLogAlert(
      'Do not remove callbacks while callbacks are executing. Call wait() first.',
    );
  }
  return this._callbacks.remove(callbackKey) != null;
}