putPiece method

void putPiece(
  1. BoardPieceType piece,
  2. String square,
  3. PlayerColor color
)

Puts piece on a square

Implementation

void putPiece(BoardPieceType piece, String square, PlayerColor color) {
  game.put(_getPiece(piece, color), square);
  notifyListeners();
}