TouchedSpot constructor

TouchedSpot(
  1. FlSpot spot,
  2. Offset offset
)

spot represents the spot inside our axis based chart, 0, 0 is bottom left, and 1, 1 is top right.

offset is the touch position in device pixels, 0, 0 is top, left, and 1, 1 is bottom right.

Implementation

TouchedSpot(
  this.spot,
  this.offset,
);