hitTest method

  1. @override
bool hitTest(
  1. HitTestResult result, {
  2. required double localX,
  3. required double localY,
})
override

Performs hit-testing at (localX, localY) in this object's coordinate space. Adds matching entries to result, deepest first.

Returns true if this object or a descendant was hit.

Implementation

@override
bool hitTest(
  HitTestResult result, {
  required double localX,
  required double localY,
}) {
  if (ignoring) return false;
  return super.hitTest(result, localX: localX, localY: localY);
}