copyWith method
Copies current ScatterTouchResponse to a new ScatterTouchResponse, and replaces provided values.
Implementation
ScatterTouchResponse copyWith({
ScatterTouchedSpot? touchedSpot,
}) {
return ScatterTouchResponse(touchedSpot ?? this.touchedSpot);
}