color property

Color? color
final

The color to use for the icon inside the button, if the icon is enabled. Defaults to leaving this up to the icon widget.

The icon is enabled if onPressed is not null.

IconButton(
  color: Colors.blue,
  icon: const Icon(Icons.sunny_snowing),
  onPressed: () {
    // ...
  },
)

Implementation

final Color? color;