dispose method

Future<void> dispose()

Disposes the snapshotter instance. The instance should not be used after calling this method.

Implementation

Future<void> dispose() async {
  _finalizer.detach(this);
  await _snapshotterInstanceManager
      .tearDownSnapshotterForSuffix(_suffix.toString());
  _suffixesRegistry.releaseSuffix(_suffix);
}