toTextSize

fun TextUnit.toTextSize(): <Error class: unknown class>

Converts a Compose TextUnit using 'sp' to a TextSize domain model. Defaults to TextSize.Unspecified if the TextUnit is unspecified.

Throws

IllegalArgumentException

if the TextUnit is not specified in SP.