maxHeightUnconstrained static method

BoxConstraints maxHeightUnconstrained(
  1. BoxConstraints constraints
)

A BoxConstraintsTransform that removes the maxHeight constraint from the input.

Setting constraintsTransform to this allows child to render at its "natural" height or the minHeight of the incoming BoxConstraints, whichever is larger.

Implementation

static BoxConstraints maxHeightUnconstrained(BoxConstraints constraints) => constraints.copyWith(maxHeight: double.infinity);