to2d method

(int, int) to2d(
  1. int idx
)

Implementation

@pragma('vm:prefer-inline')
(int, int) to2d(int idx) => (idx % width, idx ~/ width);