textColor property
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 WidgetStateColor it will be resolved against WidgetState.selected and WidgetState.disabled states.
See also:
- ListTileTheme.of, which returns the nearest ListTileTheme's ListTileThemeData.
Implementation
final Color? textColor;