selectedIcon property

Widget? selectedIcon
final

The icon to display inside the button when isSelected is true. This property can be null. The original icon will be used for both selected and unselected status if it is null.

The Icon.size and Icon.color of the icon is configured automatically based on the iconSize and color properties using an IconTheme and therefore should not be explicitly configured in the icon widget.

This property is only used if ThemeData.useMaterial3 is true.

See also:

Implementation

final Widget? selectedIcon;