Unspecified

It is needed to indicate that there is no style (not the same as an Empty one), since it does not replace the style that was previously specified.

In the example below, we will get 789456 in the console, where everything will be in bold, as indicated in the first Text. The second Text changes 123 to 789, but does not change the previously specified style in any way.

Box {
Text("123456", textStyle = TextStyle.Invert)
Text("789", textStyle = TextStyle.Unspecified)
}

or (because TextStyle.Unspecified is specified by default)

Box {
Text("123456", textStyle = TextStyle.Invert)
Text("789")
}

Output to the console: 789456

When adding other styles to this, when using the plus operator, the added styles will be applied.

If you need to reset the style, then explicitly use TextStyle.Empty.

See also