iconColor property

Color? iconColor
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 WidgetStateColor it will be resolved against WidgetState.selected and WidgetState.disabled states.

See also:

Implementation

final Color? iconColor;