hasInfiniteAxis method

bool hasInfiniteAxis(
  1. Axis axis
)

Whether the constraint for the given axis is infinite.

Implementation

bool hasInfiniteAxis(Axis axis) {
  return axis == Axis.vertical ? hasInfiniteHeight : hasInfiniteWidth;
}