Gets the component of this offset crossing axis.
axis
double crossAxisOffset(Axis axis) { return axis == Axis.vertical ? dx : dy; }