SpringForce copyWith({SpringDescription spring, double left, double right })

Creates a copy of this spring force but with the given fields replaced with the new values.

Source

SpringForce copyWith({
  SpringDescription spring,
  double left,
  double right
}) {
  return new SpringForce(
    spring ?? this.spring,
    left: left ?? this.left,
    right: right ?? this.right
  );
}