app_bsky_richtext_facet library

Classes

Facet
Annotation of a sub-string within rich text.
FacetByteSlice
Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.
FacetByteSliceConverter
FacetConverter
Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.
FacetLinkConverter
FacetMention
Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.
FacetMentionConverter
FacetTag
Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').
FacetTagConverter
UFacetFeature
UFacetFeatureConverter
UFacetFeatureFacetMention
UFacetFeatureFacetTag
UFacetFeatureUnknown

Functions

isFacet(Map<String, dynamic>? object) bool
Returns true if object is Facet, otherwise false.
isFacetByteSlice(Map<String, dynamic>? object) bool
Returns true if object is FacetByteSlice, otherwise false.
Returns true if object is FacetLink, otherwise false.
isFacetMention(Map<String, dynamic>? object) bool
Returns true if object is FacetMention, otherwise false.
isFacetTag(Map<String, dynamic>? object) bool
Returns true if object is FacetTag, otherwise false.