throwIfCancelled method
Throws CancelledException if this token has been cancelled.
Implementation
void throwIfCancelled() {
if (_isCancelled) {
throw const CancelledException();
}
}
Throws CancelledException if this token has been cancelled.
void throwIfCancelled() {
if (_isCancelled) {
throw const CancelledException();
}
}