throwIfCancelled method

  1. @override
void throwIfCancelled()
override

Throws the cancellation exception if the token has already been cancelled.

Implementation

@override
void throwIfCancelled() {
  if (isCancelled) throw exception!;
}