flex method

Niku flex([
  1. int flex = 1
])

Apply Flexible to widget

Equivalent to

Flexible(
  flex: input
)

Implementation

Niku flex([int flex = 1]) => Niku(Flexible(child: this._widget, flex: flex));