getModifiers method
Gets the modifiers at (x, y). Returns transparent if coordinates are out of bounds.
Implementation
@override
int getModifiers(int x, int y) {
if (x < 0 || x >= bounds.width || y < 0 || y >= bounds.height) {
return Modifier.transparent;
}
return parent.getModifiers(bounds.x + x, bounds.y + y);
}