getModifiers method

  1. @override
int getModifiers(
  1. int x,
  2. int y
)
override

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);
}