listDownloaded method
Generated-proto downloaded-model registry surface.
Implementation
Future<ModelListResult> listDownloaded() async {
if (!DartBridge.isInitialized) {
throw SDKException.notInitialized();
}
final models = await DartBridgeModelRegistry.instance
.listDownloadedProtoModels();
return ModelListResult(
success: true,
models: ModelInfoList(models: models),
);
}