copyWith method

PasswordRule copyWith({
  1. Widget? passedWidget,
  2. Widget? failedWidget,
  3. Color? passedColor,
  4. Color? failedColor,
  5. int? minLength,
  6. int? maxLength,
  7. String? disallowedSymbols,
})

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,
  );
}