flush method
Flushes pending writes to the backing store.
Implementation
@override
Future<void> flush() async {
_checkOpen();
if (!_metaDirty) return;
await _serialize(() async {
if (!_metaDirty) return;
await _store.putMany({
idbMetaKey(path): encodeIdbMeta(_length, chunkSize),
});
_metaDirty = false;
});
}