SpanStyle

@Immutable
class SpanStyle(val color: Color = Color.Unspecified, val textStyle: TextStyle = TextStyle.Unspecified, val background: Color = Color.Unspecified)

Constructors

Link copied to clipboard
constructor(color: Color = Color.Unspecified, textStyle: TextStyle = TextStyle.Unspecified, background: Color = Color.Unspecified)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(color: Color = this.color, textStyle: TextStyle = this.textStyle, background: Color = this.background): SpanStyle
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
@Stable
fun merge(other: SpanStyle? = null): SpanStyle

Returns a new span style that is a combination of this style and the given other style.

Link copied to clipboard
@Stable
operator fun plus(other: SpanStyle): SpanStyle

Plus operator overload that applies a merge.

Link copied to clipboard
open override fun toString(): String