close method

Future<void> close()

Implementation

Future<void> close() async {
  if (_closed) return;
  _closed = true;
  await _flush();
}