maxHeight method

Niku maxHeight(
  1. double maxHeight
)

Set maximum height for widget

Equivalent to:

ConstrainedBox(
  constraints: BoxConstraints(
    maxHeight: maxHeight
  )
)

Implementation

Niku maxHeight(double maxHeight) {
  _widget = ConstrainedBox(
      constraints: BoxConstraints(
        maxHeight: maxHeight,
      ),
      child: _widget);

  return this;
}