BoxConstraints.expand constructor Null safety
Creates box constraints that expand to fill another box constraints.
If width or height is given, the constraints will require exactly the given value in the given dimension.
Implementation
const BoxConstraints.expand({
double? width,
double? height,
}) : minWidth = width ?? double.infinity,
maxWidth = width ?? double.infinity,
minHeight = height ?? double.infinity,
maxHeight = height ?? double.infinity;