ActiveGridClient.fromClient constructor

  1. @visibleForTesting
ActiveGridClient.fromClient(
  1. Client httpClient, {
  2. ActiveGridOptions options = const ActiveGridOptions(),
  3. 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);