to1d method

int to1d(
  1. int x,
  2. int y
)

Implementation

@pragma('vm:prefer-inline')
int to1d(int x, int y) => y * width + x;