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