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