create static method

Future<CvWrapper> create(
  1. CVCreateInput input
)

Create and load a Computer Vision model

Implementation

static Future<CvWrapper> create(CVCreateInput input) async {
  try {
    final wrapper = CvWrapper._();
    final result = await _channel.invokeMethod('createCv', input.toMap());
    wrapper._wrapperId = result as String;
    return wrapper;
  } on PlatformException catch (e) {
    throw Exception('Failed to create CV: ${e.message}');
  }
}