copyWith method

FdcProgressBarStyle copyWith({
  1. double? height,
  2. BorderRadiusGeometry? borderRadius,
  3. Color? trackColor,
  4. Color? valueColor,
  5. Color? indeterminateValueColor,
  6. BoxBorder? backgroundBorder,
  7. Duration? animationDuration,
  8. bool? reserveSpaceWhenIdle,
  9. Duration? visibilityDelay,
  10. Duration? pollInterval,
  11. FdcProgressBarDisplayMode? displayMode,
})

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