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 path to the new model filetask
: The YOLO task type for the new model
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.');
}