snapToValue property
final
Whether to snap annotation values to nearest data point values when dragging.
When true, dragging the annotation will snap its position to the nearest actual data point values on the chart axes.
Implementation
final bool snapToValue;