showSelectedIcon property

bool showSelectedIcon
final

Determines if the selectedIcon (usually an icon using Icons.check) is displayed on the selected segments.

If true, the selectedIcon will be displayed at the start of the segment. If both the ButtonSegment.label and ButtonSegment.icon are provided, then the icon will be replaced with the selectedIcon. If only the icon or the label is present then the selectedIcon will be shown at the start of the segment.

If false, then the selectedIcon is not used and will not be displayed on selected segments.

The default is true, meaning the selectedIcon will be shown on selected segments.

Implementation

final bool showSelectedIcon;