expanded method

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

A widget that expands a child of a Row, Column, or Flex.

Implementation

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