hitTest method

bool hitTest(
  1. Offset normalizedPoint, {
  2. double slop = 0.004,
})

Implementation

bool hitTest(Offset normalizedPoint, {double slop = 0.004}) {
  for (final Rect rect in rects) {
    if (rect.inflate(slop).contains(normalizedPoint)) return true;
  }
  return false;
}