We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f868b69 commit 37c301eCopy full SHA for 37c301e
omegatypes/src/main/java/com/omega_r/libs/omegatypes/Text.kt
@@ -24,6 +24,11 @@ open class Text(protected val defaultTextStyle: TextStyle?) : Serializable {
24
@JvmOverloads
25
fun from(string: String, textStyle: TextStyle? = null): Text = StringText(string, textStyle)
26
27
+
28
+ @JvmStatic
29
+ @JvmOverloads
30
+ fun from(charSequence: CharSequence, textStyle: TextStyle? = null): Text = CharSequenceText(charSequence, textStyle)
31
32
@JvmStatic
33
34
fun from(stringRes: Int, textStyle: TextStyle? = null): Text = ResourceText(stringRes, textStyle)
0 commit comments