defaultHitTestChild method
Implementation
bool defaultHitTestChild(BoxHitTestResult result, {required ui.Offset position}) {
if (child == null) {
return false;
}
final BoxParentData childParentData = child!.parentData as BoxParentData;
return result.addWithPaintOffset(
offset: childParentData.offset,
position: position,
hitTest: (BoxHitTestResult result, Offset transformed) {
assert(transformed == position - childParentData.offset);
return child!.hitTest(result, position: transformed);
},
);
}