expanded method

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

Apply expanded to self

Equivalent to:

Expanded()

Implementation

Niku expanded([int flex = 1]) {
  _widget = Expanded(child: _widget, flex: flex);

  return this;
}