flex property

  1. @override
int? flex
final

Defines the column's share of the CmsTableItem width in the CmsTable.

When non-null the column flexes, taking flex parts of the available row width (like Expanded.flex). Set it to null to make a fixed-width, non-flexing column - useful for icons, avatars or badges that should not stretch. A fixed column is sized to width (with a sensible default when width is omitted).

Implementation

@override
final int? flex;