hasTightCrossAxis method

bool hasTightCrossAxis(
  1. Axis axis
)

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

Implementation

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