copyWith method

  1. @useResult
FProgressStyle copyWith({
  1. BoxConstraints? constraints,
  2. DecorationDelta? trackDecoration,
  3. DecorationDelta? 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,
  DecorationDelta? trackDecoration,
  DecorationDelta? 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,
);