copyWith method
PasswordDecoration
copyWith({
- TextStyle? textStyle,
- ObscureStyle? obscureStyle,
- String? errorText,
- TextStyle? errorTextStyle,
- String? hintText,
- 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,
);
}