DartBridge class
Central coordinator for all C++ bridges.
Matches Swift's CppBridge pattern exactly:
- 2-phase initialization (core sync + services async)
- Platform adapter registration (file ops, logging, keychain)
- Event callback registration
- Module registration coordination
Usage:
// Phase 1: Core init (sync, ~1-5ms)
DartBridge.initialize(SDKEnvironment.production);
// Phase 2: Services init (async, ~100-500ms)
await DartBridge.initializeServices();
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- auth → DartBridgeAuth
-
Authentication bridge
no setter
- device → DartBridgeDevice
-
Device bridge
no setter
- download → DartBridgeDownload
-
Download bridge
no setter
- environment → SDKEnvironment
-
Current environment
no setter
- events → DartBridgeEvents
-
Events bridge
no setter
- http → DartBridgeHTTP
-
HTTP bridge
no setter
- isInitialized → bool
-
Whether Phase 1 (core) initialization is complete
no setter
- lib → DynamicLibrary
-
Native library reference
no setter
- llm → DartBridgeLLM
-
LLM bridge
no setter
- modelAssignment → DartBridgeModelAssignment
-
Model assignment bridge
no setter
- modelPaths → DartBridgeModelPaths
-
Model paths bridge
no setter
- modelRegistry → DartBridgeModelRegistry
-
Model registry bridge
no setter
- platform → DartBridgePlatform
-
Platform bridge
no setter
- platformServices → DartBridgePlatformServices
-
Platform services bridge
no setter
- rag → DartBridgeRAG
-
RAG pipeline bridge
no setter
- servicesInitialized → bool
-
Whether Phase 2 (services) initialization is complete
no setter
- state → DartBridgeState
-
State bridge
no setter
- storage → DartBridgeStorage
-
Storage bridge
no setter
- stt → DartBridgeSTT
-
STT bridge
no setter
- telemetry → DartBridgeTelemetry
-
Telemetry bridge
no setter
- tts → DartBridgeTTS
-
TTS bridge
no setter
- vad → DartBridgeVAD
-
VAD bridge
no setter
- vlm → DartBridgeVLM
-
VLM bridge
no setter
- voiceAgent → DartBridgeVoiceAgent
-
Voice agent bridge
no setter
Static Methods
-
initialize(
SDKEnvironment environment) → void - Initialize the core bridge layer.
-
initializeServices(
{String? apiKey, String? baseURL, String? deviceId}) → Future< void> - Initialize service bridges.
-
shutdown(
) → void - Shutdown all bridges and release resources.