copyWith method

CognitoUserPoolConfig copyWith({
  1. String? poolId,
  2. String? appClientId,
  3. String? appClientSecret,
  4. String? region,
  5. CognitoOAuthConfig? hostedUI,
  6. String? endpoint,
})

Implementation

CognitoUserPoolConfig copyWith({
  String? poolId,
  String? appClientId,
  String? appClientSecret,
  String? region,
  CognitoOAuthConfig? hostedUI,
  String? endpoint,
}) {
  return CognitoUserPoolConfig(
    poolId: poolId ?? this.poolId,
    appClientId: appClientId ?? this.appClientId,
    appClientSecret: appClientSecret ?? this.appClientSecret,
    region: region ?? this.region,
    hostedUI: hostedUI ?? this.hostedUI,
    endpoint: endpoint ?? this.endpoint,
  );
}