iconColor property
final
Defines the default color for leading and trailing icons.
If this property is null and selected is false then ListTileThemeData.iconColor is used. If that is also null and ThemeData.useMaterial3 is true, ColorScheme.onSurfaceVariant is used, otherwise if ThemeData.brightness is Brightness.light, Colors.black54 is used, and if ThemeData.brightness is Brightness.dark, the value is null.
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:
- ListTileTheme.of, which returns the nearest ListTileTheme's ListTileThemeData.
Implementation
final Color? iconColor;