core-ktx / androidx.text / kotlin.CharSequence / toSpannable

toSpannable

inline fun CharSequence.toSpannable(): Spannable

Returns a new Spannable from CharSequence, or the source itself if it is already an instance of SpannableString.