flex method

Widget flex(
  1. int flexValue
)

自定义flex值 - flex(value)

Implementation

Widget flex(int flexValue) {
  return Expanded(
    flex: flexValue,
    child: build(),
  );
}