createStringWithSpans

fun createStringWithSpans(text: String?, spans: Iterable<SpanInfo>, isDarkTheme: Boolean): AnnotatedString