throwIfCancelled method

void throwIfCancelled({
  1. String? path,
})

Implementation

void throwIfCancelled({String? path}) {
  if (_cancelled) {
    throw CancelledException(
      'operation cancelled',
      path: path,
      cause: _reason,
    );
  }
}