hitTest method
Hit-test this render object using position in local coordinates.
Implementation
bool hitTest(HitTestResult result, Offset position) {
final snapshot = children.toList(growable: false);
for (final child in snapshot.reversed) {
if (child.hitTest(result, position - Offset(child.x, child.y))) {
return true;
}
}
return false;
}