parseCellKey static method
Parses a cell key into its (x, y) coordinates.
Cell keys are formatted as "${x}_${y}" where x and y are integer grid coordinates (not pixel positions).
Implementation
static (int x, int y) parseCellKey(String cellKey) {
final parts = cellKey.split('_');
return (int.parse(parts[0]), int.parse(parts[1]));
}