cancel method

  1. @override
  2. @mustCallSuper
void cancel()
override

Permanently disables this observable. Further changes to value will be ignored, the outputs onChanged, nextValue, and values will not be called again.

Implementation

@override
@mustCallSuper
void cancel() {
  super.cancel();
  _timer?.cancel();
}