hitTestInView method

  1. @override
void hitTestInView(
  1. HitTestResult result,
  2. Offset position,
  3. int viewId
)
override

Determine which HitTestTarget objects are located at a given position in the specified view.

Implementation

@override
void hitTestInView(HitTestResult result, Offset position, int viewId) {
  _viewIdToRenderView[viewId]?.hitTest(result, position: position);
  super.hitTestInView(result, position, viewId);
}