toAnimationPart

abstract fun toAnimationPart(text: String): AnimationPart<String>

Creates an AnimationPart from a String

Return

The AnimationPart instance associated with the input text.

Since

2.0.0

Parameters

text

The String that will be the value of the AnimationPart.


abstract fun toAnimationPart(animation: Animation): AnimationPart<Animation>

Creates an AnimationPart from an Animation

Return

The AnimationPart instance associated with the input text.

Since

2.0.0

Parameters

animation

The Animation that will be the value of the AnimationPart.