DartBridgeModelLifecycle class
Proto-backed model/component lifecycle bridge.
This is the Flutter binding for rac_model_lifecycle_*_proto and keeps the
live model lifecycle truth in commons instead of mirroring component state in
Dart maps or DTOs.
load() runs the C++ call on the main Dart
isolate — an earlier Isolate.run wrap caused universal model-load
SIGABRTs on both Android and iOS
because model_lifecycle.cpp publishes events via Dart-side
Dart FFI callbacks registered on the main isolate; calling those callbacks
from a worker isolate trips Dart 3.10's DLRT_GetFfiCallbackMetadata
assert. SDK events are already delivered through NativeCallable.listener;
the remaining blockers are synchronous Pointer.fromFunction platform
adapter slots such as file, secure-storage, and memory callbacks. The
long-term fix belongs in the platform SDK bridge layer: move those
synchronous services to native platform helpers or another cross-thread
safe adapter design before moving lifecycle load back off the UI isolate.
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
-
componentSnapshot(
SDKComponent component) → ComponentLifecycleSnapshot? -
current(
CurrentModelRequest request) → Future< CurrentModelResult> -
load(
ModelLoadRequest request) → Future< ModelLoadResult> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unload(
ModelUnloadRequest request) → Future< ModelUnloadResult>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → DartBridgeModelLifecycle
-
final