copyWith method

  1. @useResult
FProgressStyle copyWith({
  1. BoxDecoration? backgroundDecoration,
  2. BoxDecoration? progressDecoration,
  3. BoxConstraints? constraints,
  4. Duration? animationDuration,
  5. Curve? curve,
})

Returns a copy of this FProgressStyle with the given properties replaced.

Implementation

@useResult
FProgressStyle copyWith({
  BoxDecoration? backgroundDecoration,
  BoxDecoration? progressDecoration,
  BoxConstraints? constraints,
  Duration? animationDuration,
  Curve? curve,
}) =>
    FProgressStyle(
      backgroundDecoration: backgroundDecoration ?? this.backgroundDecoration,
      progressDecoration: progressDecoration ?? this.progressDecoration,
      constraints: constraints ?? this.constraints,
      animationDuration: animationDuration ?? this.animationDuration,
      curve: curve ?? this.curve,
    );