cancel method

void cancel()

Implementation

void cancel() {
  if (_cancelled) return;
  _cancelled = true;
  _cancelEmitter.emit(null);
}