widthConstraints method

BoxConstraints widthConstraints()

Returns box constraints with the same width constraints but with unconstrained height.

Implementation

BoxConstraints widthConstraints() => BoxConstraints(minWidth: minWidth, maxWidth: maxWidth);