selectedIcon property
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:
- Icon, for icons based on glyphs from fonts instead of images.
- ImageIcon, for showing icons from AssetImages or other ImageProviders.
Implementation
final Widget? selectedIcon;