ToggleButtonColors

constructor(containerColor: Color, contentColor: Color, disabledContainerColor: Color, disabledContentColor: Color, checkedContainerColor: Color, checkedContentColor: Color)

create an instance with arbitrary colors.

Parameters

containerColor

the container color of this ToggleButton when enabled.

contentColor

the content color of this ToggleButton when enabled.

disabledContainerColor

the container color of this ToggleButton when not enabled.

disabledContentColor

the content color of this ToggleButton when not enabled.

checkedContainerColor

the container color of this ToggleButton when checked.

checkedContentColor

the content color of this ToggleButton when checked.