DfApiClient constructor

DfApiClient({
  1. required DfHttpClientConfig httpApiConfig,
  2. Client? client,
  3. Future<void> onErrorRecorded(
    1. Object error,
    2. StackTrace? stack
    )?,
})

Creates a new API client with the given HTTP configuration.

Implementation

DfApiClient({
  required this.httpApiConfig,
  http.Client? client,
  this.onErrorRecorded,
}) : httpClient = client ?? http.Client();