androidx.compose.material3
RadioButtonColors
Class
No hand-written docs yet.
Represents the color used by a RadioButton in different states.
class RadioButtonColors(
selectedColor: Color,
unselectedColor: Color,
disabledSelectedColor: Color,
disabledUnselectedColor: Color,
)
How to get one
Create it
RadioButtonColors(selectedColor, unselectedColor, disabledSelectedColor, disabledUnselectedColor)constructor
Ready-made values and functions that return it
Used by
Parameters that take a RadioButtonColors.
Properties
selectedColor
val selectedColor: Color
unselectedColor
val unselectedColor: Color
disabledSelectedColor
val disabledSelectedColor: Color
disabledUnselectedColor
val disabledUnselectedColor: Color
Functions
copy
fun copy(
selectedColor: Color = this.selectedColor,
unselectedColor: Color = this.unselectedColor,
disabledSelectedColor: Color = this.disabledSelectedColor,
disabledUnselectedColor: Color = this.disabledUnselectedColor,
): RadioButtonColors
Returns a copy of this SelectableChipColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Library docs
Represents the color used by a RadioButton in different states.