dispose method

void dispose()

Disposes the repository. You should call this method when you're done using the repository. This method will cancel the timer and close the stream. You should not use the repository after calling this method.

Implementation

void dispose() {
  timer?.cancel();
  _controller.close();
}