subtitle property Null safety

Widget? subtitle
final

Additional content displayed below the title.

Typically a Text widget.

If isThreeLine is false, this should not wrap.

If isThreeLine is true, this should be configured to take a maximum of two lines. For example, you can use Text.maxLines to enforce the number of lines.

The subtitle's default TextStyle depends on TextTheme.bodyMedium except TextStyle.color. The TextStyle.color depends on the value of enabled and selected.

When enabled is false, the text color is set to ThemeData.disabledColor.

When selected is false, the text color is set to ListTileTheme.textColor if it's not null and to TextTheme.bodySmall's color if ListTileTheme.textColor is null.

Implementation

final Widget? subtitle;