CognitoIdentityId constructor

CognitoIdentityId(
  1. String _identityPoolId,
  2. CognitoUserPool _pool, {
  3. String? authenticator,
  4. String? token,
})

Implementation

CognitoIdentityId(this._identityPoolId, this._pool,
    {String? authenticator, String? token})
    : _region = _pool.getRegion(),
      _client = _pool.client,
      _identityIdKey = 'aws.cognito.identity-id.$_identityPoolId',
      _token = token,
      _authenticator = authenticator ??
          'cognito-idp.${_pool.getRegion()}.amazonaws.com/${_pool.getUserPoolId()}' {
  if (_token != null) {
    _loginParam = {
      _authenticator: _token,
    };
  }
}