copyWith method

  1. @useResult
FLinearProgressStyle copyWith({
  1. BoxConstraints? constraints,
  2. BoxDecoration? backgroundDecoration,
  3. BoxDecoration? progressDecoration,
  4. Curve? curve,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

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