textColor property

Color? textColor
final

Defines the text color for the title, subtitle, leading, and trailing.

If this property is null and selected is false then ListTileThemeData.textColor is used. If that is also null then default text color is used for the title, subtitle leading, and trailing. Except for subtitle, if ThemeData.useMaterial3 is false, TextTheme.bodySmall is used.

If this property is null and selected is true then ListTileThemeData.selectedColor is used. If that is also null then ColorScheme.primary is used.

If this color is a MaterialStateColor it will be resolved against MaterialState.selected and MaterialState.disabled states.

See also:

Implementation

final Color? textColor;