onTap method

bool onTap(
  1. Offset localPosition
)

Called when this series' pane receives a tap at localPosition, in the same coordinate space as paint's size/canvas. Override to make a drawn region (e.g. a label) interactive. Returns true if the tap was handled by this series.

Implementation

bool onTap(Offset localPosition) => false;