dispose method

  1. @override
void dispose()
override

Disposes this disposable and any resources it has open.

Implementation

@override
void dispose() {
  if (_streamController != null) {
    _streamController!.close();
    _streamController = null;
  }
  if (_changeController != null) {
    _changeController!.close();
    _changeController = null;
  }
}