isDark method

bool isDark(
  1. int row,
  2. int col
)

Implementation

bool isDark(int row, int col) {
  if (row < 0 || moduleCount <= row || col < 0 || moduleCount <= col) {
    throw ArgumentError('$row , $col');
  }
  return _modules[row][col]!;
}