trackEvent method

Future<void> trackEvent({
  1. required String name,
  2. dynamic data,
})

Implementation

Future<void> trackEvent({
  required String name,
  dynamic data,
}) async {
  String? stringifiedHashMap = jsonEncode(data);

  await GleapJsSdkHelper.trackEvent(name, stringifiedHashMap);
}