getMinIntrinsicCrossAxis method

double getMinIntrinsicCrossAxis(
  1. Axis axis,
  2. double main
)

Returns the minimum extent crossing axis that this box could be without failing to correctly paint its contents within itself, without clipping.

Implementation

double getMinIntrinsicCrossAxis(Axis axis, double main) {
  return axis == Axis.vertical
      ? getMinIntrinsicWidth(main)
      : getMinIntrinsicHeight(main);
}