event static method

Future<void> event(
  1. String eventId, {
  2. String? label,
  3. Map? attributes,
  4. int counter = 0,
})

事件统计功能

eventId 网站上注册的事件id label 分类标签 attributes 自定义属性 counter 自定义数值

Implementation

static Future<void> event(
  String eventId, {
  String? label,
  Map? attributes,
  int counter = 0,
}) async {
  final params = <String, dynamic>{
    'eventId': eventId,
    'label': label,
    'attributes': attributes,
    'counter': counter,
  };
  return _channel.invokeMethod<void>('event', params);
}