maxAxis method

double maxAxis(
  1. Axis axis
)

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

Might be double.infinity.

Implementation

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