throwIfCancelled method
Throws the cancellation exception if the token has already been cancelled.
Implementation
@override
void throwIfCancelled() {
if (isCancelled) throw exception!;
}
Throws the cancellation exception if the token has already been cancelled.
@override
void throwIfCancelled() {
if (isCancelled) throw exception!;
}