Rotates this offset with axis where dx becomes the cross axis extent and dy becomes the main axis extent.
axis
dx
dy
Offset rotateWithAxis(Axis axis) { return axis == Axis.vertical ? this : Offset(dy, dx); }