isPointInStroke method

bool isPointInStroke(
  1. double x,
  2. double y
)

Implementation

bool isPointInStroke(double x, double y) {
  return path2d.path.contains(Offset(x, y));
}