copyWith method

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

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.

constraints

The linear progress's constraints. Defaults to a height of 10.0 and no horizontal constraint.

backgroundDecoration

The progress's background's decoration.

progressDecoration

The progress's decoration.

curve

The animation curve. Defaults to Curves.ease.

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