BoxConstraints.expand constructor Null safety

const BoxConstraints.expand(
  1. {double? width,
  2. 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.


const BoxConstraints.expand({
  double? width,
  double? height,
}) : minWidth = width ?? double.infinity,
     maxWidth = width ?? double.infinity,
     minHeight = height ?? double.infinity,
     maxHeight = height ?? double.infinity;