copyWith method

IndicatorJellyPhysics copyWith({
  1. bool? enabled,
  2. double? travelStretch,
  3. Duration? travelStretchDuration,
  4. double? travelStretchBounce,
  5. Duration? travelStretchHold,
  6. Duration? travelStretchRelaxDuration,
  7. double? travelThinning,
  8. double? travelFlatten,
  9. Duration? travelFlattenDuration,
  10. Duration? travelFlattenHold,
  11. Duration? travelFlattenRelaxDuration,
  12. Duration? trailingDuration,
  13. double? trailingBounce,
  14. double? squishAnchor,
  15. double? compressionBulge,
  16. double? maxCompression,
  17. Duration? dragTrailingDuration,
  18. double? maxDragStretch,
  19. 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,
  );
}