ApiRenderClient constructor

ApiRenderClient({
  1. required Uri baseUrl,
  2. String? apiToken,
  3. Client? httpClient,
})

Creates a client against baseUrl (e.g. https://render.example.com), authenticating with apiToken when set.

Implementation

ApiRenderClient({required this.baseUrl, this.apiToken, http.Client? httpClient})
  : _http = httpClient ?? http.Client();