logEvent method

  1. @override
Future<bool> logEvent(
  1. String eventName, {
  2. Map<String, dynamic>? data,
})
override

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;
}