RadioButtonColors


Represents the color used by a RadioButton in different states.

Summary

Public constructors

RadioButtonColors(
    selectedColor: Color,
    unselectedColor: Color,
    disabledSelectedColor: Color,
    disabledUnselectedColor: Color
)

create an instance with arbitrary colors.

Cmn

Public functions

RadioButtonColors
copy(
    selectedColor: Color,
    unselectedColor: Color,
    disabledSelectedColor: Color,
    disabledUnselectedColor: Color
)

Returns a copy of this SelectableChipColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

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

Cmn
Color

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

Cmn
Color

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

Cmn
Color

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

Cmn

Public constructors

RadioButtonColors

RadioButtonColors(
    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.

Parameters
selectedColor: Color

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

unselectedColor: Color

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

disabledSelectedColor: Color

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

disabledUnselectedColor: Color

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

Public 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”

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

disabledSelectedColor

val disabledSelectedColorColor

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

disabledUnselectedColor

val disabledUnselectedColorColor

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

selectedColor

val selectedColorColor

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

unselectedColor

val unselectedColorColor

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