throwIfCancelled method

void throwIfCancelled()

Check if cancelled and throw if so

Implementation

void throwIfCancelled() {
  if (_isCancelled) {
    throw CancelledException('Operation was cancelled');
  }
}