hitTestRects method

List<Rect> hitTestRects(
  1. double tolerance
)

Builds the hit-test rectangles covering the path, each expanded by tolerance.

Implementation

List<Rect> hitTestRects(double tolerance) =>
    EdgePathMath.generateHitTestFromSegments(
      start: start,
      segments: segments,
      tolerance: tolerance,
    );