minHeight method

Widget minHeight(
  1. SizeUnit minHeight, [
  2. Key? key
])

Sets the minimum height constraint for this widget using a SizeUnit.

The widget will not shrink below this height, even if the parent container or flex shrinking would normally make it smaller.

The optional key parameter assigns a key to the wrapped widget.

Example:

Container().minHeight(50.size),

Implementation

Widget minHeight(SizeUnit minHeight, [Key? key]) {
  return _WidgetWrapper._wrapOrCopyWith(
    child: this,
    key: key != null ? () => key : null,
    minHeight: () => minHeight,
  );
}