close method
Implementation
Future<void> close() async {
if (_closed) return;
_closed = true;
await _writer?.flush();
await _writer?.close();
_writer = null;
_cache.clear();
}
Future<void> close() async {
if (_closed) return;
_closed = true;
await _writer?.flush();
await _writer?.close();
_writer = null;
_cache.clear();
}