dispose method

void dispose()

Dispose the stream when the implemented class is disposed

Implementation

void dispose() {
  stateObserver.close();
}