addEvent method
Implementation
@override
Future<void> addEvent(
String? event, String? group, Map<String, dynamic>? properties) async {
if (event == null || group == null) {
return;
}
if (Platform.isIOS) {
properties ??= {};
methodChannel.invokeMethod<void>('addEvent', {"event": event, "group": group, "properties": properties});
} else if (Platform.isAndroid) {
methodChannel.invokeMethod<void>('addEvent',
{"event": event, "group": group, "properties": properties});
}
}