The size in the main axis.
double mainAxisSize(Axis axis) => axis == Axis.horizontal ? width : height;