copyWith method

  1. @useResult
FProgressStyle copyWith({
  1. BoxConstraints? constraints,
  2. BoxDecorationDelta? trackDecoration,
  3. BoxDecorationDelta? fillDecoration,
  4. FProgressMotionDelta? motion,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FProgressStyle copyWith({
  BoxConstraints? constraints,
  BoxDecorationDelta? trackDecoration,
  BoxDecorationDelta? fillDecoration,
  FProgressMotionDelta? motion,
}) => .new(
  constraints: constraints ?? this.constraints,
  trackDecoration: trackDecoration?.call(this.trackDecoration) ?? this.trackDecoration,
  fillDecoration: fillDecoration?.call(this.fillDecoration) ?? this.fillDecoration,
  motion: motion?.call(this.motion) ?? this.motion,
);