BoxConstraints.tightFor constructor
Creates box constraints that require the given width or height.
See also:
- new BoxConstraints.tightForFinite, which is similar but instead of being tight if the value is non-null, is tight if the value is not infinite.
Implementation
const BoxConstraints.tightFor({
double width,
double height
}): minWidth = width != null ? width : 0.0,
maxWidth = width != null ? width : double.infinity,
minHeight = height != null ? height : 0.0,
maxHeight = height != null ? height : double.infinity;