Creates a Size with the given cross and main extents.
cross
main
static Size create(Axis axis, double cross, double main) { return axis == Axis.vertical ? Size(cross, main) : Size(main, cross); }