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