data class AnnotatedString
The basic data structure of text with multiple styles. To construct an AnnotatedString you
can use Builder.
Builder class for AnnotatedString.
The information attached on the text such as a SpanStyle.
Query the string annotations attached on this AnnotatedString.
Annotations are metadata attached on the AnnotatedString, for example, a URL is a string
metadata attached on the a certain range. Annotations are also store with Item like the
||the tag of the annotations that is being queried. It's used to distinguish
the annotations for different purposes.
||the start of the query range, inclusive.
||the end of the query range, exclusive.
|a list of annotations stored in
|| Item. Notice that All annotations that intersect
with the range [start, end) will be returned. When start is bigger than end, an empty
list will be returned.