hitTest abstract method Null safety

void hitTest(
  1. HitTestResult result,
  2. Offset position
)

Check whether the given position hits this object.

If this given position hits this object, consider adding a HitTestEntry to the given hit test result.

Implementation

void hitTest(HitTestResult result, Offset position);