widthPercent method

Niku widthPercent(
  1. double percent
)

Set width in percent

Equivalent to:

Flexible(
  child: FractionallySizedBox(
    widthFactor: input
  )
)

Implementation

Niku widthPercent(double percent) => Niku(
      FractionallySizedBox(
        widthFactor: percent / 100,
        child: this._widget,
      ),
    );