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