copyWith method

RadarTouchResponse copyWith({
  1. RadarTouchedSpot? touchedSpot,
})

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

Implementation

RadarTouchResponse copyWith({
  RadarTouchedSpot? touchedSpot,
}) {
  return RadarTouchResponse(
    touchedSpot ?? this.touchedSpot,
  );
}