copyWith method
PinDecoration
copyWith({
- TextStyle? textStyle,
- ObscureStyle? obscureStyle,
- String? errorText,
- TextStyle? errorTextStyle,
- String? hintText,
- TextStyle? hintTextStyle,
- ColorBuilder? bgColorBuilder,
override
Creates a copy of this pin decoration with the given fields replaced by the new values.
Implementation
@override
PinDecoration copyWith({
TextStyle? textStyle,
ObscureStyle? obscureStyle,
String? errorText,
TextStyle? errorTextStyle,
String? hintText,
TextStyle? hintTextStyle,
ColorBuilder? bgColorBuilder,
}) {
return BoxTightDecoration(
textStyle: textStyle ?? this.textStyle,
obscureStyle: obscureStyle ?? this.obscureStyle,
errorText: errorText ?? this.errorText,
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
hintText: hintText ?? this.hintText,
hintTextStyle: hintTextStyle ?? this.hintTextStyle,
strokeColor: strokeColor,
strokeWidth: strokeWidth,
radius: radius,
bgColorBuilder: this.bgColorBuilder,
);
}