copyWith method
Creates a copy with selected values replaced.
Implementation
FdcProgressBarStyle copyWith({
double? height,
BorderRadiusGeometry? borderRadius,
Color? trackColor,
Color? valueColor,
Color? indeterminateValueColor,
BoxBorder? backgroundBorder,
Duration? animationDuration,
bool? reserveSpaceWhenIdle,
Duration? visibilityDelay,
Duration? pollInterval,
FdcProgressBarDisplayMode? displayMode,
}) {
return FdcProgressBarStyle(
height: height ?? this.height,
borderRadius: borderRadius ?? this.borderRadius,
trackColor: trackColor ?? this.trackColor,
valueColor: valueColor ?? this.valueColor,
indeterminateValueColor:
indeterminateValueColor ?? this.indeterminateValueColor,
backgroundBorder: backgroundBorder ?? this.backgroundBorder,
animationDuration: animationDuration ?? this.animationDuration,
reserveSpaceWhenIdle: reserveSpaceWhenIdle ?? this.reserveSpaceWhenIdle,
visibilityDelay: visibilityDelay ?? this.visibilityDelay,
pollInterval: pollInterval ?? this.pollInterval,
displayMode: displayMode ?? this.displayMode,
);
}