hasInfiniteCrossAxis method

bool hasInfiniteCrossAxis(
  1. Axis axis
)

Whether the constraint crossing the given axis is infinite.

Implementation

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