ActiveGridClient.fromClient constructor
ActiveGridClient.fromClient(
- Client httpClient, {
- ActiveGridOptions options = const ActiveGridOptions(),
- ActiveGridAuthenticator? authenticator,
Creates an Api Client on the Basis of a http.Client
this should only be used for testing in order to pass in a Mocked http.Client
Implementation
@visibleForTesting
ActiveGridClient.fromClient(http.Client httpClient,
{this.options = const ActiveGridOptions(),
ActiveGridAuthenticator? authenticator})
: _client = httpClient,
_authenticator =
authenticator ?? ActiveGridAuthenticator(options: options);