cancelWithReason method
A convenience method for cancelling the token with a CancelledException that includes the reason for cancellation.
Implementation
@mustCallSuper
void cancelWithReason(String? cancellationReason) {
cancel(CancelledException(cancellationReason: cancellationReason));
}