Client constructor

Client(
  1. SignatureMethod _signatureMethod,
  2. ClientCredentials _clientCredentials,
  3. Credentials _credentials, [
  4. BaseClient? httpClient,
])

A constructor of Client.

If you want to use in web browser, pass http.BrowserClient object for httpClient. https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/http/http-browser_client.BrowserClient

Implementation

Client(this._signatureMethod, this._clientCredentials, this._credentials, [http.BaseClient? httpClient]) : _httpClient = httpClient != null ? httpClient : http.Client() as http.BaseClient;