PostText class final
A piece of post text that has been formatted and had its facets resolved:
exactly the two values app.bsky.feed.post needs, in the types the record
API takes.
Produced by bluesky.feed.buildPostText. The point of the type is that
text and facets belong together and must not be separated: facet ranges
are byte offsets into text, so pairing these facets with the original,
unformatted string produces links that land on the wrong characters.
Constructors
Properties
-
facets
→ List<
RichtextFacet> -
The facets for text, as lexicon models.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNoUnresolvedHandles → bool
-
Whether every mention resolved.
no setter
- hasUnresolvedHandles → bool
-
Whether any mention failed to resolve.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The formatted text to post. Not necessarily the string that was passed
in — markdown links, for one, are rewritten during formatting.
final
-
unresolvedHandles
→ List<
String> -
Handles that appear as mentions in text but could not be resolved to a
DID, and therefore carry no facet.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited