ApptiveGridClient constructor
ApptiveGridClient({
- ApptiveGridOptions options = const ApptiveGridOptions(),
- Client? httpClient,
- 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);
}