switchModel method

Future<void> switchModel(
  1. String modelPath,
  2. YOLOTask task
)

Implementation

Future<void> switchModel(String modelPath, YOLOTask task) async {
  if (_methodChannel != null && _viewId != null) {
    await _methodChannel!.invokeMethod('setModel', {
      'modelPath': modelPath,
      'task': task.name,
    });
  }
}