hitTest method
Determines whether the specified localPoint
is within the bounds of this
icon.
This implementation is specific to GIcon and only tests whether the point is within the local bounds of the icon.
Implementation
@override
GDisplayObject? hitTest(GPoint localPoint, [bool useShape = false]) {
if (!visible || !mouseEnabled) {
return null;
}
return _localBounds.containsPoint(localPoint) ? this : null;
}