create static method

Future<VlmWrapper> create(
  1. VlmCreateInput input
)

Create and load a VLM model

Implementation

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