RadioButtonColors

class RadioButtonColors


Represents the color used by a RadioButton in different states.

See RadioButtonDefaults.colors for the default implementation that follows Material specifications.

Summary

Public constructors

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

create an instance with arbitrary colors.

Public functions

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

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

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

Public properties

Color

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

Color

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

Color

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

Color

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

Public constructors

RadioButtonColors

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

create an instance with arbitrary colors.

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

Added in 1.0.0
val disabledSelectedColorColor

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

disabledUnselectedColor

Added in 1.0.0
val disabledUnselectedColorColor

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

selectedColor

Added in 1.0.0
val selectedColorColor

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

unselectedColor

Added in 1.0.0
val unselectedColorColor

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