RdwClient constructor
RdwClient({})
Creates a client.
Pass httpClient to reuse your own client or to test with a mock; this
client then leaves closing it to you.
Implementation
RdwClient({
this.appToken,
http.Client? httpClient,
Uri? baseUri,
this.timeout = const Duration(seconds: 15),
}) : baseUri = baseUri ?? defaultBaseUri,
_http = httpClient ?? http.Client(),
_ownsHttp = httpClient == null;