getMaxIntrinsicAxis method

double getMaxIntrinsicAxis(
  1. Axis axis,
  2. double cross
)

Returns the smallest extent on axis beyond which increasing the extent never decreases the preferred cross extent. The preferred cross extent is the value that would be returned by getMinIntrinsicCrossAxis for that main extent.

Implementation

double getMaxIntrinsicAxis(Axis axis, double cross) {
  return axis == Axis.vertical
      ? getMaxIntrinsicHeight(cross)
      : getMaxIntrinsicWidth(cross);
}