copyWith method

ContactPoint copyWith({
  1. Vector2? pointA,
  2. Vector2? pointB,
  3. double? distance,
})

Implementation

ContactPoint copyWith({Vector2? pointA, Vector2? pointB, double? distance}) {
  return ContactPoint(pointA ?? this.pointA, pointB ?? this.pointB, distance ?? this.distance);
}