Client constructor

Client({
  1. String? endpoint,
  2. String? region,
  3. String service = 'AWSCognitoIdentityProviderService',
  4. Client? client,
  5. String? userAgent,
})

Implementation

Client({
  String? endpoint,
  String? region,
  String service = 'AWSCognitoIdentityProviderService',
  http.Client? client,
  String? userAgent,
}) {
  _region = region;
  _service = service;
  _userAgent = userAgent ?? _userAgent;
  this.endpoint = endpoint ?? 'https://cognito-idp.$_region.amazonaws.com/';
  _client = client ?? http.Client();
}