registerWith static method

void registerWith(
  1. Registrar registrar
)

Registering method

Implementation

static void registerWith(Registrar registrar) {
  final channel = MethodChannel(
    'camcode',
    const StandardMethodCodec(),
    // ignore: unnecessary_cast
    registrar as BinaryMessenger,
  );

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