FirstPartyEventLogger constructor

FirstPartyEventLogger({
  1. required String endpoint,
  2. int maxBatchSize = 200,
  3. int maxAttempts = 8,
  4. bool skipAuth = false,
  5. int baseBackoffDelayMs = 500,
  6. int maxBackoffDelayMs = 30000,
  7. required bool isKilled(),
  8. required Future<Map<String, String>> getAuthHeaders(),
  9. required Future<void> httpPost(
    1. String url,
    2. Object body,
    3. Map<String, String> headers
    ),
  10. required String getUserAgent(),
})

Implementation

FirstPartyEventLogger({
  required this.endpoint,
  this.maxBatchSize = 200,
  this.maxAttempts = 8,
  this.skipAuth = false,
  this.baseBackoffDelayMs = 500,
  this.maxBackoffDelayMs = 30000,
  required this.isKilled,
  required this.getAuthHeaders,
  required this.httpPost,
  required this.getUserAgent,
});