maxCrossAxis method

double maxCrossAxis(
  1. Axis axis
)

The maximum value that satisfies the constraints crossing the given axis.

Might be double.infinity.

Implementation

double maxCrossAxis(Axis axis) {
  return axis == Axis.vertical ? maxWidth : maxHeight;
}