dispose method

void dispose()

Cancels the event-channel subscription. Call in State.dispose.

Implementation

void dispose() {
  _sub?.cancel();
}