close method

void close()

Close the stream listening to the Dexcom readings.

Implementation

void close() {
  if (_isListening == false) {
    print("The stream is already closed.");
  }

  _init();
  _time = null;
  _controller!.close();
  _isListening = false;
}