log method

void log(
  1. String eventName, [
  2. Map<String, dynamic>? parameter
])

Implementation

void log(String eventName, [Map<String, dynamic>? parameter]) {
  var eventList = events.value..add(AnalyticEvent(eventName, parameter));

  if (eventList.length > _maxEvents) {
    eventList.removeAt(0);
  }
  events.add(eventList);
}