crossAxisSize method

double crossAxisSize(
  1. Axis axis
)

Gets the extent of this size crossing the given axis.

Implementation

double crossAxisSize(Axis axis) {
  return axis == Axis.vertical ? width : height;
}