loosen method Null safety

BoxConstraints loosen()

Returns new box constraints that remove the minimum width and height requirements.

Implementation

BoxConstraints loosen() {
  assert(debugAssertIsValid());
  return BoxConstraints(
    maxWidth: maxWidth,
    maxHeight: maxHeight,
  );
}