copyWith method

  1. @override
PasswordDecoration copyWith({
  1. TextStyle? textStyle,
  2. ObscureStyle? obscureStyle,
  3. String? errorText,
  4. TextStyle? errorTextStyle,
  5. String? hintText,
  6. TextStyle? hintTextStyle,
})
override

Creates a copy of this password decoration with the given fields replaced by the new values.

Implementation

@override
PasswordDecoration copyWith({
  TextStyle? textStyle,
  ObscureStyle? obscureStyle,
  String? errorText,
  TextStyle? errorTextStyle,
  String? hintText,
  TextStyle? hintTextStyle,
}) {
  return BoxLooseDecoration(
    textStyle: textStyle ?? this.textStyle,
    obscureStyle: obscureStyle ?? this.obscureStyle,
    errorText: errorText ?? this.errorText,
    errorTextStyle: errorTextStyle ?? this.errorTextStyle,
    hintText: hintText ?? this.hintText,
    hintTextStyle: hintTextStyle ?? this.hintTextStyle,
    solidColor: this.solidColor,
    strokeColor: this.strokeColor,
    strokeWidth: this.strokeWidth,
    radius: this.radius,
    enteredColor: this.enteredColor,
    gapSpace: this.gapSpace,
    gapSpaces: this.gapSpaces,
  );
}