DoxHttpPackageClient constructor

DoxHttpPackageClient({
  1. DoxHttpClient? client,
})

With no client, the adapter makes a DoxHttpClient with no timeout, like the default client of package:http, and close closes it. A client that you give stays open: close it yourself.

Implementation

DoxHttpPackageClient({DoxHttpClient? client})
  : _owned = client == null,
    _client = client ?? DoxHttpClient(timeout: Duration.zero);