AxisSizedBox constructor
Creates a fixed size box. The cross
and main
parameters can be null
to indicate that the size of the box should not be constrained in
the corresponding dimension.
Implementation
const AxisSizedBox({
super.key,
required Axis axis,
double? cross,
double? main,
}) : super(
width: axis == Axis.vertical ? cross : main,
height: axis == Axis.vertical ? main : cross,
);