onAnalyticsEvent property

  1. @JsonKey(toJson: toNull, fromJson: toNull, includeIfNull: false)
Future<void> Function(AiutaAnalyticEvent)? onAnalyticsEvent
final

Optional listener for analytics events. This listener is called when an analytics event is triggered by the Aiuta SDK. You can use this listener to send analytics events to your analytics provider. For example, you can use Firebase Analytics, Google Analytics, or any other analytics provider.

Implementation

@JsonKey(toJson: toNull, fromJson: toNull, includeIfNull: false)
final Future<void> Function(AiutaAnalyticEvent)? onAnalyticsEvent;