BoxConstraints.tightFor constructor

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

Creates box constraints that require the given width or height.

See also:

Implementation

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