BloomHttpTelemetryTransport constructor

BloomHttpTelemetryTransport({
  1. required Uri endpoint,
  2. Map<String, String>? headers,
  3. Client? client,
  4. Duration timeout = const Duration(seconds: 10),
  5. void onError(
    1. BloomTelemetryEvent event,
    2. Object error,
    3. StackTrace stackTrace
    )?,
})

Implementation

BloomHttpTelemetryTransport({
  required this.endpoint,
  Map<String, String>? headers,
  http.Client? client,
  this.timeout = const Duration(seconds: 10),
  this.onError,
})  : headers = headers ?? const {},
      _client = client ?? http.Client();