log method
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);
}