getSquare method

bool getSquare(
  1. String square
)

Implementation

bool getSquare(String square) {
  int sqIndex = CertaboProtocol.squares.indexOf(square.toLowerCase());
  if (sqIndex == -1) throw Exception("Square not found.");
  return _pattern[sqIndex];
}