|
|
@@ -9,7 +9,11 @@ class EventHandler {
|
|
|
|
|
|
static void report(String eventId, {Map<String, dynamic>? params}) {
|
|
|
if (isShowToast) {
|
|
|
- ToastUtil.showToast('$eventId ${params?.toString()}');
|
|
|
+ if (params == null) {
|
|
|
+ ToastUtil.showToast(eventId);
|
|
|
+ } else {
|
|
|
+ ToastUtil.showToast('$eventId ${params.toString()}');
|
|
|
+ }
|
|
|
}
|
|
|
GravityHelper.report(eventId, params: params);
|
|
|
}
|