copyWith method

FdcGridProgressStyle copyWith({
  1. Color? color,
  2. Color? backgroundColor,
  3. bool? showText,
  4. TextStyle? textStyle,
  5. double? height,
  6. BorderRadiusGeometry? borderRadius,
  7. BoxBorder? border,
})

Creates a copy with selected values replaced.

Implementation

FdcGridProgressStyle copyWith({
  Color? color,
  Color? backgroundColor,
  bool? showText,
  TextStyle? textStyle,
  double? height,
  BorderRadiusGeometry? borderRadius,
  BoxBorder? border,
}) {
  return FdcGridProgressStyle(
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    showText: showText ?? this.showText,
    textStyle: textStyle ?? this.textStyle,
    height: height ?? this.height,
    borderRadius: borderRadius ?? this.borderRadius,
    border: border ?? this.border,
  );
}