crossAxisOffset method

double crossAxisOffset(
  1. Axis axis
)

Gets the component of this offset crossing axis.

Implementation

double crossAxisOffset(Axis axis) {
  return axis == Axis.vertical ? dx : dy;
}