cancel method

void cancel()

Implementation

void cancel() {
  _cancelTokens.remove(id)?.cancel();
  isolate?.cancelRequest(id);
}