heightUnconstrained method Null safety

BoxConstraints heightUnconstrained(
  1. BoxConstraints constraints
)

A BoxConstraintsTransform that removes the height constraints from the input.

Setting constraintsTransform to this allows child to render at its "natural" height (equivalent to an UnconstrainedBox with constrainedAxis set to Axis.vertical).

Implementation

static BoxConstraints heightUnconstrained(BoxConstraints constraints) => constraints.widthConstraints();