logError method

Future<void> logError({
  1. required String eventName,
  2. Map<String, String?>? customAttributes,
})

Logs an error event with an eventName and customAttributes.

Implementation

Future<void> logError({
  required String eventName,
  Map<String, String?>? customAttributes,
}) async {
  return await _channel.invokeMethod('logError', {
    'eventName': eventName,
    'customAttributes': customAttributes,
  });
}