loosen method

BoxConstraints loosen()

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

Implementation

BoxConstraints loosen() {
  return BoxConstraints(
    minWidth: 0,
    maxWidth: maxWidth,
    minHeight: 0,
    maxHeight: maxHeight,
  );
}