logEvent static method

Future<void> logEvent(
  1. String eventId, {
  2. Map<String, String>? properties,
})

自定义事件统计

eventId : 事件ID,不能为空 properties : 事件属性,可选,Map类型,Key 和 Value 都必须是 String 类型

Implementation

static Future<void> logEvent(
  String eventId, {
  Map<String, String>? properties,
}) async {
  return UmengAnalyticsPluginPlatform.instance.logEvent(
    eventId,
    properties: properties,
  );
}