close method

void close()

Flushes and stops.

Implementation

void close() {
  flush();
  _closed = true;
  _timer?.cancel();
  _timer = null;
}