copyWith method

ProgressIndicatorThemeData copyWith({
  1. Color? color,
  2. Color? linearTrackColor,
  3. double? linearMinHeight,
  4. Color? circularTrackColor,
  5. Color? refreshBackgroundColor,
  6. BorderRadiusGeometry? borderRadius,
  7. Color? stopIndicatorColor,
  8. double? stopIndicatorRadius,
  9. double? strokeWidth,
  10. double? strokeAlign,
  11. StrokeCap? strokeCap,
  12. BoxConstraints? constraints,
  13. double? trackGap,
  14. EdgeInsetsGeometry? circularTrackPadding,
  15. bool? year2023,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

ProgressIndicatorThemeData copyWith({
  Color? color,
  Color? linearTrackColor,
  double? linearMinHeight,
  Color? circularTrackColor,
  Color? refreshBackgroundColor,
  BorderRadiusGeometry? borderRadius,
  Color? stopIndicatorColor,
  double? stopIndicatorRadius,
  double? strokeWidth,
  double? strokeAlign,
  StrokeCap? strokeCap,
  BoxConstraints? constraints,
  double? trackGap,
  EdgeInsetsGeometry? circularTrackPadding,
  bool? year2023,
}) {
  return ProgressIndicatorThemeData(
    color: color ?? this.color,
    linearTrackColor: linearTrackColor ?? this.linearTrackColor,
    linearMinHeight: linearMinHeight ?? this.linearMinHeight,
    circularTrackColor: circularTrackColor ?? this.circularTrackColor,
    refreshBackgroundColor: refreshBackgroundColor ?? this.refreshBackgroundColor,
    borderRadius: borderRadius ?? this.borderRadius,
    stopIndicatorColor: stopIndicatorColor ?? this.stopIndicatorColor,
    stopIndicatorRadius: stopIndicatorRadius ?? this.stopIndicatorRadius,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    strokeAlign: strokeAlign ?? this.strokeAlign,
    strokeCap: strokeCap ?? this.strokeCap,
    constraints: constraints ?? this.constraints,
    trackGap: trackGap ?? this.trackGap,
    circularTrackPadding: circularTrackPadding ?? this.circularTrackPadding,
    year2023: year2023 ?? this.year2023,
  );
}