copy

@Composable
fun copy(checkedThumbColor: Color = this.checkedThumbColor, checkedTrackColor: Color = this.checkedTrackColor, uncheckedThumbColor: Color = this.uncheckedThumbColor, uncheckedTrackColor: Color = this.uncheckedTrackColor): SwitchColors

Creates a copy of this SwitchColors with the given values replacing the non-null ones.

Parameters

checkedThumbColor

the color used for the thumb when enabled and checked

checkedTrackColor

the color used for the track when enabled and checked

uncheckedThumbColor

the color used for the thumb when enabled and unchecked

uncheckedTrackColor

the color used for the track when enabled and unchecked