SelectableChipColors


Represents the container and content colors used in a selectable chip in different states.

See FilterChipDefaults.filterChipColors and FilterChipDefaults.elevatedFilterChipColors for the default colors used in FilterChip.

Summary

Public constructors

SelectableChipColors(
    containerColor: Color,
    labelColor: Color,
    leadingIconColor: Color,
    trailingIconColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color,
    selectedContainerColor: Color,
    disabledSelectedContainerColor: Color,
    selectedLabelColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingIconColor: Color
)
Cmn

Public functions

SelectableChipColors
copy(
    containerColor: Color,
    labelColor: Color,
    leadingIconColor: Color,
    trailingIconColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color,
    selectedContainerColor: Color,
    disabledSelectedContainerColor: Color,
    selectedLabelColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingIconColor: Color
)

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

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

Public constructors

SelectableChipColors

SelectableChipColors(
    containerColor: Color,
    labelColor: Color,
    leadingIconColor: Color,
    trailingIconColor: Color,
    disabledContainerColor: Color,
    disabledLabelColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color,
    selectedContainerColor: Color,
    disabledSelectedContainerColor: Color,
    selectedLabelColor: Color,
    selectedLeadingIconColor: Color,
    selectedTrailingIconColor: Color
)

Public functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    labelColor: Color = this.labelColor,
    leadingIconColor: Color = this.leadingIconColor,
    trailingIconColor: Color = this.trailingIconColor,
    disabledContainerColor: Color = this.disabledContainerColor,
    disabledLabelColor: Color = this.disabledLabelColor,
    disabledLeadingIconColor: Color = this.disabledLeadingIconColor,
    disabledTrailingIconColor: Color = this.disabledTrailingIconColor,
    selectedContainerColor: Color = this.selectedContainerColor,
    disabledSelectedContainerColor: Color = this.disabledSelectedContainerColor,
    selectedLabelColor: Color = this.selectedLabelColor,
    selectedLeadingIconColor: Color = this.selectedLeadingIconColor,
    selectedTrailingIconColor: Color = this.selectedTrailingIconColor
): SelectableChipColors

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