color property
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
final Color? color;