color property Null safety

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.

Typically, a Material Design color will be used, as follows:
Icon(
  Icons.widgets,
  color: Colors.blue.shade400,
)

Implementation

final Color? color;