expanded method
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(
key: key,
flex: flex,
child: this,
);
}