HttpClientWrapper constructor

HttpClientWrapper({
  1. Client? client,
})

Creates a new wrapper.

An optional client may be provided for testing. The GitHub token is read from the GITHUB_TOKEN environment variable.

Implementation

HttpClientWrapper({http.Client? client})
    : _client = client ?? http.Client(),
      _githubToken = Platform.environment['GITHUB_TOKEN'];