BadgeColors

@Immutable
class BadgeColors(val backgroundColor: Color, val contentColor: Color)

Color defs for badge

Constructors

Link copied to clipboard
constructor(backgroundColor: Color, contentColor: Color)

Properties

Link copied to clipboard
val backgroundColor: Color

backgroundColor

Link copied to clipboard
val contentColor: Color

content color, maybe text color or image tint color

Functions

Link copied to clipboard
@Stable
fun copy(backgroundColor: Color = this.backgroundColor, contentColor: Color = this.contentColor): BadgeColors

Create a new BadgeColors instance with expected background color and content color.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int