close method
Close both backing files. Implicitly commits.
Implementation
Future<void> close() async {
await _heapFile.close();
await _idxFile.close();
for (final si in _secondary.values) {
await si.file.close();
}
_secondary.clear();
}