Authorization constructor
Authorization(
- ClientCredentials _clientCredentials,
- Platform _platform, [
- 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 ?? http.Client() as http.BaseClient;