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.