expand method

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

Creates an Expanded widget with the current widget as its child

Implementation

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