get method Null safety
- String square
Returns the piece at the square in question or null if there is none
Implementation
Piece? get(String square) {
return board[SQUARES[square]];
}
Returns the piece at the square in question or null if there is none
Piece? get(String square) {
return board[SQUARES[square]];
}