copyWith method

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

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

See customizing widget styles.

Parameters

Implementation

@useResult
FDeterminateProgressStyle copyWith({
  BoxConstraints? constraints,
  BoxDecorationDelta? trackDecoration,
  BoxDecorationDelta? fillDecoration,
  FDeterminateProgressMotionDelta? 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,
);