textAnimation

inline fun <T> Terminal.textAnimation(whitespace: Whitespace = Whitespace.PRE, align: TextAlign = TextAlign.NONE, overflowWrap: OverflowWrap = OverflowWrap.NORMAL, width: Int? = null, tabWidth: Int? = null, trailingLinebreak: Boolean = true, crossinline draw: (T) -> String): Animation<T>

Create an Animation that wraps the result of the draw function into a Text widget and renders it.