color property

  1. @override
Color? color
final

The color to use when drawing the icon.

Defaults to the nearest IconTheme's IconThemeData.color.

The color (whether specified explicitly here or obtained from the IconTheme) will be further adjusted by the nearest IconTheme's IconThemeData.opacity.

{@tool snippet} Typically, a Material Design color will be used, as follows:

Icon(
  Icons.widgets,
  color: Colors.blue.shade400,
)

{@end-tool}

Implementation

@override
final Color? color;