A function to build a widget from rank, file and squareSize.
rank
file
squareSize
final SquareBuilder builder;