cancel method

void cancel()

Cancels the subscription.

Implementation

void cancel() {
  _backoff?.cancel();
  _backoffDuration = Duration.zero;
  _subscription?.cancel();
}