dispose method

Future<void> dispose()

Releases the native conversation resources.

Implementation

Future<void> dispose() async {
  final handle = _handle;
  if (handle != null) {
    LiteRtLmNativeRuntime.instance.deleteConversation(handle);
    _handle = null;
  }
}