BoxConstraints.tightFor constructor
Creates box constraints that require the given width or height.
See also:
- 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 ?? 0.0,
maxWidth = width ?? double.infinity,
minHeight = height ?? 0.0,
maxHeight = height ?? double.infinity;