Authorization constructor

Authorization(
  1. ClientCredentials _clientCredentials,
  2. Platform _platform, [
  3. BaseClient? httpClient
])

A constructor of Authorization.

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

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