BoxConstraints.expand constructor

const BoxConstraints.expand({double width, double height })

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 != null ? width : double.infinity,
    maxWidth = width != null ? width : double.infinity,
    minHeight = height != null ? height : double.infinity,
    maxHeight = height != null ? height : double.infinity;