expanded method

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

Implementation

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