heightPercent method

Niku heightPercent(
  1. double percent
)

Set height in percent

Equivalent to:

Flexible(
  child: FractionallySizedBox(
    heightFactor: input / 100
  )
)

Implementation

Niku heightPercent(double percent) {
  _widget = FractionallySizedBox(
    widthFactor: percent / 100,
    child: _widget,
  );

  return this;
}