trackEvent method

void trackEvent(
  1. String screen,
  2. Map<String, dynamic> event
)

Implementation

void trackEvent(String screen, Map<String, dynamic> event) async {
  Map<String, dynamic> response =
      await spotCheckState.sendTrackEventRequest(screen, event);
  if (response["valid"]) {
    spotCheckState.start();
  } else {
    log("TrackEvent Failed");
  }
}