remove method
Removes the appropriate callback.
callbackKeySpecify 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;
}