detach method

  1. @protected
  2. @mustCallSuper
void detach()

Detatches from the CancellationToken. This should be called after completing without cancellation.

Implementation

@protected
@mustCallSuper
void detach() {
  _attachedToken?.detachCancellable(this);
  _attachedToken = null;
}