trackEvent method
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");
}
}