DartBridgeEmbeddings class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
embedBatch(EmbeddingsRequest request)
→ EmbeddingsResult
-
Synchronous variant retained for the unit-test harness (which drives it
with setEmbedBatchLifecycleProtoForTesting). Production callers use
embedBatchAsync, which runs the blocking native call off the UI isolate.
-
embedBatchAsync(EmbeddingsRequest request)
→ Future<EmbeddingsResult>
-
Embed a batch through the lifecycle-owned generated-proto ABI, running the
blocking native call in a short-lived worker isolate (
Isolate.run) so the
calling isolate — usually the Flutter UI isolate — stays responsive.
Embedding a large batch (e.g. RAG ingest) is a long synchronous block; on
the UI isolate it freezes frames. Mirrors dart_bridge_stt.dart's
transcribeLifecycleProtoAsync: this ABI is lifecycle-owned (no Dart-held
handle), so the worker re-resolves the engine via the commons model
lifecycle — nothing isolate-bound crosses.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited