flexible method

Widget flexible([
  1. int flex = 1
])

Make the widget flexible with a flex factor

Implementation

Widget flexible([int flex = 1]) => Flexible(flex: flex, child: this);