handleTap method

void handleTap(
  1. Offset position,
  2. ChartEngine engine,
  3. ChartContext context
)

Implementation

void handleTap(Offset position, ChartEngine engine, ChartContext context) {
  final hit = hitTestEngine.test(position, context, engine.renderers);
  onTap?.call(hit, position);
  if (hit != null) onSelection?.call(hit);
}