checkCancelled static method

  1. @internal
void checkCancelled(
  1. CancelToken? cancelToken
)

Implementation

@internal
static void checkCancelled(CancelToken? cancelToken) {
  final error = cancelToken?.cancelError;
  if (error != null) {
    throw error;
  }
}