logEventWithParameters static method

Future<EventRecordStatus> logEventWithParameters(
  1. String eventId,
  2. Map<String, String> parameters
)

Records an event named eventId with parameters.

Logs eventId with maximum of 10 parameters which helps in specifying the characteristics of the event. Returns the event recording status of the logged event.

Implementation

static Future<EventRecordStatus> logEventWithParameters(
    String eventId, Map<String, String> parameters) async {
  if (flurryAgent != null) {
    int eventRecordStatus =
        await flurryAgent!.logEventWithParameters(eventId, parameters);
    return EventRecordStatus.values[eventRecordStatus];
  }

  return EventRecordStatus.eventRecorded;
}