recordEvent abstract method

Future<void> recordEvent(
  1. String key, [
  2. Map<String, Object>? segmentation,
  3. int? count,
  4. double? sum,
  5. int? duration,
])

Records a custom event with the specified values.

key: Name of the custom event, required, must not be an empty string. segmentation: Segmentation map to associate with the event, can be null. (optional) count: Count to associate with the event, should be more than zero. (optional) sum: Sum to associate with the event. (optional) duration: Duration of the event. (optional)

Implementation

Future<void> recordEvent(String key, [Map<String, Object>? segmentation, int? count, double? sum, int? duration]);