copyWith method
- 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,
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,
);
}