descriptionOrNull

open fun descriptionOrNull(fallback: String? = null): MutableText?

The translated Text description from the descriptionKey. Falls back to an empty string so no tooltip is rendered. If no translation exists when called returns null.

Return

MutableText translation result or null if no translation is present

Author

fzzyhmstrs

Since

0.6.8

Parameters

fallback

String, default null. Translation key fallback (can be a literal string too, translation will simply provide the literal once translation fails). If null will return a blank description.