setModel method
Sets the model for an existing YOLO view.
This method allows switching the model on an existing YOLO view instance without recreating the entire view.
Parameters:
viewId: The unique identifier of the YOLO viewmodelPath: The official model ID, local path, asset path, or URL for the new modeltask: The YOLO task type for the new model when metadata is missing
Throws:
- UnimplementedError if not implemented by the platform
- Platform-specific exceptions if the model switch fails
Implementation
Future<void> setModel(int viewId, String modelPath, String task) {
throw UnimplementedError('setModel() has not been implemented.');
}