cleanUp method Null safety

void cleanUp()

Implementation

void cleanUp() {
  _queue.forEach((q) {
    cancel(q.hashCode);
  });
  _queue.removeWhere((element) => true);
  _currentOp = null;
}