Whether the constraint crossing the given axis is infinite.
bool hasInfiniteCrossAxis(Axis axis) { return axis == Axis.vertical ? hasInfiniteWidth : hasInfiniteHeight; }