maxSize method

Niku maxSize(
  1. double maxWidth,
  2. double maxHeight
)

Set maximum size for widget

Equivalent to:

ConstrainedBox(
  constraints: BoxConstraints(
    maxWidth: maxWidth,
    maxHeight: maxHeight
  )
)

Implementation

Niku maxSize(double maxWidth, double maxHeight) => Niku(ConstrainedBox(
    constraints: BoxConstraints(maxWidth: maxWidth, maxHeight: maxHeight),
    child: this._widget));