expand method

Widget expand({
  1. int flex = 1,
})

add Expanded to parent widget

Implementation

Widget expand({int flex = 1}) => Expanded(flex: flex, child: this!);