close method
Flush any buffered data and close this data manager. After calling close the data manager can no longer be used.
Implementation
@override
Future<void> close() async {
_initialized = false;
await file.then((activeFile) async {
sink.then((activeSink) async {
await flush(activeFile, activeSink);
await _sink?.close();
await super.close();
});
});
}