cancel method

void cancel()

Manually cancel the task

Implementation

void cancel() {
  _status = TaskStatus.cancelled;
  _operation?.cancel();
}