clear method

  1. @override
void clear([
  1. Function? callBack
])

stop the queue and clear the history

callBack is where use can call cancelToken or side effect

Implementation

@override
void clear([Function? callBack]) {
  stop();
  _map.clear();
}