DfApiClient constructor
DfApiClient({
- required DfHttpClientConfig httpApiConfig,
- Client? client,
- Future<
void> onErrorRecorded(- Object error,
- 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();