dispose static method
Cleanup LiteRT embeddings and release resources.
Should be called when embeddings are no longer needed.
Implementation
static Future<void> dispose() async {
try {
await _cleanupLiteRtEmbeddingsJS().toDart;
} catch (e) {
throw Exception('Failed to cleanup LiteRT embeddings: $e');
}
}