expanded method

Expanded expanded({
  1. Key? key,
  2. int flex = 1,
})

Make a Column Expanded. Example:

Column(
 children: [
 MaterialButton(child: Text('Button 1'), onPressed: () {}).expanded(),
 Text("Hello world"),
 ],
 ),

Implementation

Expanded expanded({Key? key, int flex = 1}) {
  return Expanded(
    child: this,
    key: key,
    flex: flex,
  );
}