API reference
API reference
Select your platform
No SDKs available
No versions available

RadioButtonColors Class

Modifiers: final
Represents the color used by a null.SpatialRadioButton in different states.

Constructors

RadioButtonColors ( selectedColor , selectedDotColor , unselectedColor , disabledSelectedColor , disabledSelectedDotColor , disabledUnselectedColor )
create an instance with arbitrary colors. See RadioButtonDefaults.colors for the default implementation.
Signature
constructor(selectedColor: Color, selectedDotColor: Color, unselectedColor: Color, disabledSelectedColor: Color, disabledSelectedDotColor: Color, disabledUnselectedColor: Color)
Parameters
selectedColor: Color
  the color to use for the RadioButton when selected and enabled.
selectedDotColor: Color
  the color to use for the RadioButton's inner dot 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.
disabledSelectedDotColor: Color
  the color to use for the RadioButton's inner dot when disabled and selected.
disabledUnselectedColor: Color
  the color to use for the RadioButton when disabled and not selected.

Properties

disabledSelectedColor : Color
[Get]
Signature
val disabledSelectedColor: Color
disabledSelectedDotColor : Color
[Get]
Signature
val disabledSelectedDotColor: Color
disabledUnselectedColor : Color
[Get]
Signature
val disabledUnselectedColor: Color
selectedColor : Color
[Get]
Signature
val selectedColor: Color
selectedDotColor : Color
[Get]
Signature
val selectedDotColor: Color
unselectedColor : Color
[Get]
Signature
val unselectedColor: Color

Functions

copy ( selectedColor , selectedDotColor , unselectedColor , disabledSelectedColor , disabledSelectedDotColor , disabledUnselectedColor )
Returns a copy of this RadioButtonColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Signature
fun copy(selectedColor: Color, selectedDotColor: Color, unselectedColor: Color, disabledSelectedColor: Color, disabledSelectedDotColor: Color, disabledUnselectedColor: Color): RadioButtonColors
Parameters
selectedColor: Color
selectedDotColor: Color
unselectedColor: Color
disabledSelectedColor: Color
disabledSelectedDotColor: Color
disabledUnselectedColor: Color
equals ( other )
Signature
open operator override fun equals(other: Any?): Boolean
Parameters
other: Any?
Returns
Boolean
hashCode ()
Signature
open override fun hashCode(): Int
Returns
Int