board_square library Null safety




MoveCallback = void Function(Map? move)
A single square on the chessboard this class receives a string with the name of the square, the chessboard controller and the current size The chessboard only needs to rebuild the squares involved in the move for performance that's what this class handles. The square from where the move originated and the square where the move finished are the only ones rebuilt. An special case is when a side promotes, in this case the whole chessboard rebuilds TODO fix in the future