BoxConstraints.tightFor constructor

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

Creates box constraints that require the given width or height.

See also:

Implementation

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