cExpanded method

Widget cExpanded(
  1. int flex
)

Make the widget expand to fill available space with a specified flex factor.

flex specifies the flex factor that determines how much space the widget should occupy compared to other widgets when using Expanded or Flexible in a flex container.

Implementation

Widget cExpanded(int flex) => Expanded(
      child: this,
      flex: flex,
    );