inBounds2d method

bool inBounds2d(
  1. int x,
  2. int y
)

Implementation

@pragma('vm:prefer-inline')
bool inBounds2d(int x, int y) => x >= 0 && x < width && y >= 0 && y < height;