expand method

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

add Expanded to parent widget

Implementation

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