dispose method

  1. @override
void dispose()

Closes the map file and releases all associated resources.

This includes clearing the index cache, closing the file handle (ReadbufferSource), and clearing the block cache.

Implementation

@override
void dispose() {
  _databaseIndexCache.dispose();
  readBufferSource.dispose();
  _cache.dispose();
  _queue.dispose();
}