importModel static method

Future<ModelImportResult> importModel(
  1. ModelImportRequest request
)

Import a stable, platform-normalized local model path into the generated registry. Also the public local-import entry point for file-picker / bookmark flows after the platform has handled sandbox access.

Mirrors Swift RunAnywhere.importModel(_:). Backed by rac_model_registry_import_proto.

Implementation

static Future<ModelImportResult> importModel(
  ModelImportRequest request,
) async {
  if (!DartBridge.isInitialized) {
    throw SDKException.notInitialized();
  }
  return DartBridgeModelRegistry.instance.importModel(request);
}