close method

Future<void> close()

Destroy the index and release native resources.

Implementation

Future<void> close() async {
  if (_closed) return;
  _closed = true;
  if (identical(_active, this)) {
    DartBridgeRAG.shared.destroyPipeline();
    _active = null;
  }
}