defaultGetTouchLineEnd function

double defaultGetTouchLineEnd(
  1. LineChartBarData barData,
  2. int spotIndex
)

By default line ends at the touched point.

Implementation

double defaultGetTouchLineEnd(LineChartBarData barData, int spotIndex) {
  return barData.spots[spotIndex].y;
}