shutdown method

Future<void> shutdown()

Flush and shut down.

Implementation

Future<void> shutdown() async {
  _isShutdown = true;
  _flushTimer?.cancel();
  _flushTimer = null;
  await _flush();
}