logEvent method
Implementation
@override
Future<bool> logEvent(String eventName, {Map<String, dynamic>? data}) async {
// TODO: implement event
try {
final result = await methodChannel.invokeMethod<bool>('event',
{'eventName': eventName, 'data': _convertDynamicMapToString(data)});
return result ?? false;
} catch (e) {
// //print(e);
}
return false;
}