boxConstraints property
set
boxConstraints
(BoxConstraints v)
Implementation
set boxConstraints(BoxConstraints v) {
if (_latest is ConstrainedBox)
return _applyConstraints(
maxWidth: !v.maxWidth.isFinite ? v.maxWidth : null,
maxHeight: !v.maxWidth.isFinite ? v.maxWidth : null,
minWidth: v.minWidth != 0 ? v.minWidth : null,
minHeight: v.minHeight != 0 ? v.minHeight : null,
);
_add((w) => ConstrainedBox(constraints: v, child: w));
}