copyWith method

SparkSelectDecoration copyWith({
  1. FontWeight? fontWeight,
  2. Color? textColor,
  3. BorderRadiusGeometry? borderRadius,
  4. double? fontSize,
  5. Color? backgroundColor,
  6. 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,
  );
}