handleTrackSchema method
void
handleTrackSchema({})
Implementation
void handleTrackSchema(
{required String eventName,
required List<Map<String, dynamic>> eventSchema,
String? eventId,
String? eventHash}) {
_startOrProlongSession(DateTime.now().millisecondsSinceEpoch);
_events.add(networkCallsHandler.bodyForEventSchemaCall(
eventName: eventName,
eventSchema: eventSchema,
sessionId: sessionTracker.sessionId,
installationId: avoInstallationId));
_saveEvents();
if (AvoInspector.shouldLog) {
print("Avo Inspector: saved event " +
eventName +
" with schema " +
jsonEncode(eventSchema));
}
_checkIfBatchNeedsToBeSent();
}