copyWith method

ScatterTouchResponse copyWith({
  1. ScatterTouchedSpot? touchedSpot,
})

Copies current ScatterTouchResponse to a new ScatterTouchResponse, and replaces provided values.

Implementation

ScatterTouchResponse copyWith({
  ScatterTouchedSpot? touchedSpot,
}) {
  return ScatterTouchResponse(touchedSpot ?? this.touchedSpot);
}