copyWith method

HorizontalScrollSimulation copyWith({
  1. Size? size,
  2. double? right,
  3. double? left,
  4. double? y,
  5. Tolerance? tolerance,
  6. double? duration,
})

Implementation

HorizontalScrollSimulation copyWith({
  Size? size,
  double? right,
  double? left,
  double? y,
  Tolerance? tolerance,
  double? duration,
}) {
  return HorizontalScrollSimulation(
    size: size ?? this.size,
    right: right ?? this.right,
    left: left ?? this.left,
    y: y ?? this.y,
    tolerance: tolerance ?? this.tolerance,
    duration: duration ?? this.duration,
  );
}