copyWith method
Returns a copy of this config with the given fields replaced.
Implementation
PasswordValidationConfig copyWith({
int? minLength,
int? maxLength,
int? minComplexityScore,
int? minAsciiCode,
int? maxAsciiCode,
double? sequentialRunFactor,
Set<String>? commonPasswords,
List<String>? commonPrefixes,
}) {
return PasswordValidationConfig(
minLength: minLength ?? this.minLength,
maxLength: maxLength ?? this.maxLength,
minComplexityScore: minComplexityScore ?? this.minComplexityScore,
minAsciiCode: minAsciiCode ?? this.minAsciiCode,
maxAsciiCode: maxAsciiCode ?? this.maxAsciiCode,
sequentialRunFactor: sequentialRunFactor ?? this.sequentialRunFactor,
commonPasswords: commonPasswords ?? this.commonPasswords,
commonPrefixes: commonPrefixes ?? this.commonPrefixes,
);
}