EventDigester constructor

EventDigester({
  1. required String apiKey,
  2. String? appVersion,
  3. bool enableIpTracking = true,
})

Initializes the EventDigester with the provided apiKey and projectId.

Implementation

EventDigester({
  required this.apiKey,
  this.appVersion,
  this.enableIpTracking = true,
}) {
  _apiClient = ApiClient(apiKey: apiKey);

  Timer.periodic(const Duration(minutes: 15), (timer) {
    _digestCache();
  });
}