label property

Widget label
final

The column heading.

Typically, this will be a Text widget. It could also be an Icon (typically using size 18), or a Row with an icon and some text.

The label is placed within a Row along with the sort indicator (if applicable). By default, label only occupy minimal space. It is recommended to place the label content in an Expanded or Flexible as label to control how the content flexes. Otherwise, an exception will occur when the available space is insufficient.

By default, DefaultTextStyle.softWrap of this subtree will be set to false. Use DefaultTextStyle.merge to override it if needed.

The label should not include the sort indicator.

Implementation

final Widget label;