ApptiveGridClient constructor

ApptiveGridClient({
  1. ApptiveGridOptions options = const ApptiveGridOptions(),
  2. Client? httpClient,
  3. ApptiveGridAuthenticator? authenticator,
})

Creates an ApiClient

Implementation

ApptiveGridClient({
  ApptiveGridOptions options = const ApptiveGridOptions(),
  http.Client? httpClient,
  ApptiveGridAuthenticator? authenticator,
})  : _options = options,
      _client = httpClient ?? http.Client() {
  this.authenticator = authenticator ??
      ApptiveGridAuthenticator(
        client: this,
        httpClient: _client,
        onAuthenticationChanged: _authenticationChanged,
      );
  _attachmentProcessor =
      AttachmentProcessor(options, this.authenticator, httpClient: _client);
}