1. override
void hitTest(HitTestResult result, Point 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.

Source

@override
void hitTest(HitTestResult result, Point position) {
  assert(renderView != null);
  renderView.hitTest(result, position: position);
  // This super call is safe since it will be bound to a mixed-in declaration.
  super.hitTest(result, position); // ignore: abstract_super_member_reference
}