LineBarSpot constructor

LineBarSpot(
  1. LineChartBarData bar,
  2. int barIndex,
  3. FlSpot spot
)

bar is the LineChartBarData that this spot is inside of, barIndex is the index of our bar, in the LineChartData.lineBarsData list, spot is the targeted spot. spotIndex is the index this FlSpot, in the LineChartBarData.spots list.

Implementation

LineBarSpot(
  this.bar,
  this.barIndex,
  FlSpot spot,
)   : spotIndex = bar.spots.indexOf(spot),
      super(spot.x, spot.y);