registerWith static method

void registerWith(
  1. Registrar registrar
)

Registers the plugin with the registrar.

Implementation

static void registerWith(final Registrar registrar) {
  final channel = MethodChannel(
    'vosk_flutter_service',
    const StandardMethodCodec(),
    registrar,
  );

  final pluginInstance = VoskFlutterPlugin();
  channel.setMethodCallHandler(pluginInstance.handleMethodCall);
}