copyWith method
IndicatorJellyPhysics
copyWith({
- bool? enabled,
- double? travelStretch,
- Duration? travelStretchDuration,
- double? travelStretchBounce,
- Duration? travelStretchHold,
- Duration? travelStretchRelaxDuration,
- double? travelThinning,
- double? travelFlatten,
- Duration? travelFlattenDuration,
- Duration? travelFlattenHold,
- Duration? travelFlattenRelaxDuration,
- Duration? trailingDuration,
- double? trailingBounce,
- double? squishAnchor,
- double? compressionBulge,
- double? maxCompression,
- Duration? dragTrailingDuration,
- double? maxDragStretch,
- double? dragThinning,
Returns a copy with the given values replaced.
Implementation
IndicatorJellyPhysics copyWith({
bool? enabled,
double? travelStretch,
Duration? travelStretchDuration,
double? travelStretchBounce,
Duration? travelStretchHold,
Duration? travelStretchRelaxDuration,
double? travelThinning,
double? travelFlatten,
Duration? travelFlattenDuration,
Duration? travelFlattenHold,
Duration? travelFlattenRelaxDuration,
Duration? trailingDuration,
double? trailingBounce,
double? squishAnchor,
double? compressionBulge,
double? maxCompression,
Duration? dragTrailingDuration,
double? maxDragStretch,
double? dragThinning,
}) {
return IndicatorJellyPhysics(
enabled: enabled ?? this.enabled,
travelStretch: travelStretch ?? this.travelStretch,
travelStretchDuration:
travelStretchDuration ?? this.travelStretchDuration,
travelStretchBounce: travelStretchBounce ?? this.travelStretchBounce,
travelStretchHold: travelStretchHold ?? this.travelStretchHold,
travelStretchRelaxDuration:
travelStretchRelaxDuration ?? this.travelStretchRelaxDuration,
travelThinning: travelThinning ?? this.travelThinning,
travelFlatten: travelFlatten ?? this.travelFlatten,
travelFlattenDuration:
travelFlattenDuration ?? this.travelFlattenDuration,
travelFlattenHold: travelFlattenHold ?? this.travelFlattenHold,
travelFlattenRelaxDuration:
travelFlattenRelaxDuration ?? this.travelFlattenRelaxDuration,
trailingDuration: trailingDuration ?? this.trailingDuration,
trailingBounce: trailingBounce ?? this.trailingBounce,
squishAnchor: squishAnchor ?? this.squishAnchor,
compressionBulge: compressionBulge ?? this.compressionBulge,
maxCompression: maxCompression ?? this.maxCompression,
dragTrailingDuration: dragTrailingDuration ?? this.dragTrailingDuration,
maxDragStretch: maxDragStretch ?? this.maxDragStretch,
dragThinning: dragThinning ?? this.dragThinning,
);
}