registerWith method Null safety

void registerWith(
  1. Registrar registrar
)

Implementation

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

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