hitTest method
Override this method to change how the boxy gets hit tested.
Return true to indicate a successful hit, false to let the parent continue testing other children.
Call addHit to add the boxy to hitTestResult.
The default behavior is to hit test all children and call addHit if any succeeded.
Implementation
bool hitTest(SliverOffset position) {
for (final child in children.reversed) {
if (child.hitTest()) {
addHit();
return true;
}
}
return false;
}