HttpClient.internal constructor

  1. @visibleForTesting
HttpClient.internal(
  1. String url,
  2. String token, {
  3. Client? httpClient,
  4. bool testMode = false,
})

Implementation

@visibleForTesting
HttpClient.internal(final String url, final String token,
    {http.Client? httpClient, bool testMode = false})
    : _baseUrl = url,
      _client = httpClient ?? http.Client(),
      _token = token {
  if (!testMode) {
    assert(url.isNotEmpty);
    assert(token.isNotEmpty);
  }
}