selectedColor property

Color selectedColor
final

The color for descendant Text and Icon widgets if the button is selected.

If onPressed is not null, this color will be used for values in isSelected that are true.

If this property is null, then ToggleButtonTheme.of(context).selectedColor is used. If ToggleButtonsThemeData.selectedColor is also null, then Theme.of(context).colorScheme.primary is used.

Implementation

final Color selectedColor