RadioButtonColors

@Immutable
class RadioButtonColors(val selectedColor: Color, val unselectedColor: Color, val disabledSelectedColor: Color, val disabledUnselectedColor: Color)

Represents the color used by a RadioButton in different states.

Parameters

selectedColor

the color to use for the RadioButton when selected and enabled.

unselectedColor

the color to use for the RadioButton when unselected and enabled.

disabledSelectedColor

the color to use for the RadioButton when disabled and selected.

disabledUnselectedColor

the color to use for the RadioButton when disabled and not selected.

Constructors

Link copied to clipboard
constructor(selectedColor: Color, unselectedColor: Color, disabledSelectedColor: Color, disabledUnselectedColor: Color)

create an instance with arbitrary colors. See RadioButtonDefaults.colors for the default implementation that follows Material specifications.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val selectedColor: Color
Link copied to clipboard
val unselectedColor: Color

Functions

Link copied to clipboard
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”

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int