A function to build a widget from rank, file and squareSize.
rank
file
squareSize
typedef SquareBuilder = Widget? Function(int rank, int file, double squareSize);