SliverSize.axis constructor
Creates a size with cross and main extents.
Implementation
const SliverSize.axis(double cross, double main, this.axis)
: super(
axis == Axis.vertical ? cross : main,
axis == Axis.vertical ? main : cross,
);