expand method

Expanded expand([
  1. int flex = 1
])

Expands the current widget to fill available space.

flex determines the proportion of space to fill. Defaults to 1.

Returns an Expanded widget with the current widget as its child.

Implementation

Expanded expand([int flex = 1]) => Expanded(flex: flex, child: this);