getY method
Gets y
dimension of a flat index (see flatten).
Implementation
int getY(int i) {
if (i < 0 || i >= numberOfElements) {
throw ArgumentError.value(i);
}
final y = this.y;
if (y == 0) {
throw StateError('No `y` index');
}
return (i ~/ x) % y;
}