LayoutConstraints.tightFor constructor
Creates tight constraints for a specific width and/or height.
When width is specified, minWidth = maxWidth = width. When height is specified, minHeight = maxHeight = height. Unspecified dimensions remain unconstrained.
Implementation
const LayoutConstraints.tightFor({
double? width,
double? height,
}) : minWidth = width ?? 0.0,
maxWidth = width ?? double.infinity,
minHeight = height ?? 0.0,
maxHeight = height ?? double.infinity;