registerWith static method
Implementation
static void registerWith(Registrar registrar) {
final MethodChannel _dartToNativeMethodChannel = MethodChannel(
'clevertap_plugin/dart_to_native',
const StandardMethodCodec(),
registrar,
);
final pluginInstance = CleverTapPluginWeb();
_dartToNativeMethodChannel
.setMethodCallHandler(pluginInstance._handleMethodCall);
final clevertapObj = globalContext['clevertap'];
if (clevertapObj != null && !clevertapObj.isUndefinedOrNull) {
setLibrary(MainPlugin.CleverTapPlugin.libName,
MainPlugin.CleverTapPlugin.libVersion);
}
}