log method

Future<void> log({
  1. required String eventName,
  2. String? category,
  3. Map<String, dynamic>? parameters,
})

Implementation

Future<void> log({
  required String eventName,
  String? category,
  Map<String, dynamic>? parameters,
}) async {
  if (parameters == null) {
    parameters = <String, dynamic>{};
  }
  if (category == null) {
    category = '';
  }
  await logEvent(name: eventName, category: category, parameters: parameters);
}