copyWith method

BarTouchResponse copyWith({
  1. BarTouchedSpot? spot,
})

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

Implementation

BarTouchResponse copyWith({
  BarTouchedSpot? spot,
}) {
  return BarTouchResponse(
    spot ?? this.spot,
  );
}