cancel method

void cancel()

取消任务

Implementation

void cancel() {
  _isCancelled = true;
  log(() => 'Task cancelled for $mediaUrl');
}