hitTest method

bool hitTest(
  1. DiagramPoint point, {
  2. required double tolerance,
})

Picking with a caller tolerance. Closed outlines pick their interior only; stroke-like outlines widen their stroke to tolerance instead of the fixed diagramStrokeHitTolerance used by contains.

Implementation

bool hitTest(DiagramPoint point, {required double tolerance}) =>
    contains(point);