copyWith method
Implementation
PasswordRule copyWith({
Widget? passedWidget,
Widget? failedWidget,
Color? passedColor,
Color? failedColor,
int? minLength,
int? maxLength,
String? disallowedSymbols,
}) {
return PasswordRule(
description: description,
validator: validator,
passedWidget: passedWidget ?? this.passedWidget,
failedWidget: failedWidget ?? this.failedWidget,
passedColor: passedColor ?? this.passedColor,
failedColor: failedColor ?? this.failedColor,
minLength: minLength ?? this.minLength,
maxLength: maxLength ?? this.maxLength,
disallowedSymbols: disallowedSymbols ?? this.disallowedSymbols,
);
}