统计事件
params support String, Map
if params isn't Map, will ignore counter
Future<void> onEvent(String event, [dynamic? params, int? counter]);