copyWith method
SparkSelectDecoration
copyWith({
- FontWeight? fontWeight,
- Color? textColor,
- BorderRadiusGeometry? borderRadius,
- double? fontSize,
- Color? backgroundColor,
- BoxBorder? border,
Implementation
SparkSelectDecoration copyWith({
FontWeight? fontWeight,
Color? textColor,
BorderRadiusGeometry? borderRadius,
double? fontSize,
Color? backgroundColor,
BoxBorder? border,
}) {
return SparkSelectDecoration(
fontWeight: fontWeight ?? this.fontWeight,
textColor: textColor ?? this.textColor,
borderRadius: borderRadius ?? this.borderRadius,
fontSize: fontSize ?? this.fontSize,
backgroundColor: backgroundColor ?? this.backgroundColor,
border: border ?? this.border,
);
}