toTextUnit

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

Converts a TextSize domain model to a Compose TextUnit using 'sp'.