event static method
事件统计功能
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);
}