Creates an offset with the specified cross and main components.
cross
main
static Offset create(Axis axis, double cross, double main) { return axis == Axis.vertical ? Offset(cross, main) : Offset(main, cross); }