SpanStyle

@Immutable
class SpanStyle(val color: Color? = null, val textStyle: TextStyle? = null, val background: Color? = null)

Constructors

Link copied to clipboard
constructor(color: Color? = null, textStyle: TextStyle? = null, background: Color? = null)

Properties

Link copied to clipboard
val background: Color? = null
Link copied to clipboard
val color: Color? = null
Link copied to clipboard
val textStyle: TextStyle? = null

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