getHitTestRects abstract method

List<Rect> getHitTestRects(
  1. Offset start,
  2. double tolerance
)

Generates hit test rectangles for this segment.

start is the starting point of this segment. tolerance is the hit test tolerance (half-width of the hit area).

Returns a list of rectangles that cover the segment path.

Implementation

List<Rect> getHitTestRects(Offset start, double tolerance);