plus

open operator fun plus(other: TextStyle): TextStyle

Return a new style that combines this style with other.

And attributes that are set on both this and other will take the value from other. Any null values on other will keep the value from this style.

Example

val style1 = TextStyle(red, blue, bold=true, italic=true)
val style2 = TextStyle(green, italic=false, dim=true)
(style1 + style2) == TextStyle(green, blue, bold=true, italic=false, dim=true)

open operator fun plus(other: TextStyles): TextStyle