RadarTouchedSpot constructor

RadarTouchedSpot(
  1. RadarDataSet touchedDataSet,
  2. int touchedDataSetIndex,
  3. RadarEntry touchedRadarEntry,
  4. int touchedRadarEntryIndex,
  5. FlSpot spot,
  6. Offset offset,
)

When touch happens, a RadarTouchedSpot returns as a output, it tells you where the touch happened. touchedDataSet, and touchedDataSetIndex tell you in which dataSet touch happened, touchedRadarEntry, and touchedRadarEntryIndex tell you in which entry touch happened, You can also have the touched x and y in the chart as a FlSpot using spot value, and you can have the local touch coordinates on the screen as a Offset using offset value.

Implementation

RadarTouchedSpot(
  this.touchedDataSet,
  this.touchedDataSetIndex,
  this.touchedRadarEntry,
  this.touchedRadarEntryIndex,
  FlSpot spot,
  Offset offset,
) : super(spot, offset);