expand method

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

expand 撑满

Implementation

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