hasTightAxis method

bool hasTightAxis(
  1. Axis axis
)

Whether there is exactly one value that satisfies the constraints on the given axis.

Implementation

bool hasTightAxis(Axis axis) {
  return axis == Axis.vertical ? hasTightHeight : hasTightWidth;
}