ScatterTouchedSpot constructor

const ScatterTouchedSpot(
  1. ScatterSpot spot,
  2. int spotIndex
)

spot, and spotIndex tells you in which spot (of ScatterChartData.scatterSpots) touch happened.

Implementation

const ScatterTouchedSpot(this.spot, this.spotIndex);