Expanded constructor

const Expanded({Key key, int flex: 1, @required Widget child })

Creates a widget that expands a child of a Row, Column, or Flex expand to fill the available space in the main axis.

Implementation

const Expanded({
  Key key,
  int flex = 1,
  @required Widget child,
}) : super(key: key, flex: flex, fit: FlexFit.tight, child: child);