PostRecord class

Available extensions
Annotations
  • @freezed

Constructors

PostRecord.new({@Default(appBskyFeedPost) @JsonKey(name: r'$type') String $type, required String text, @FacetConverter() List<Facet>? facets, @ReplyRefConverter() ReplyRef? reply, @UPostEmbedConverter() UPostEmbed? embed, List<String>? langs, @UPostLabelConverter() UPostLabel? labels, List<String>? tags, required DateTime createdAt, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
PostRecord.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
copyWith → $PostRecordCopyWith<PostRecord>
no setterinherited
createdAt DateTime
Client-declared timestamp when this post was originally created.
no setterinherited
embed UPostEmbed?
no setterinherited
facets List<Facet>?
Annotations of text (mentions, URLs, hashtags, etc)
no setterinherited
hasEmbed bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if embed is not null, otherwise false.
no setter
hasFacets bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if facets is not null, otherwise false.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasLabels bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if labels is not null, otherwise false.
no setter
hasLangs bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if langs is not null, otherwise false.
no setter
hasNotEmbed bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if embed is null, otherwise false.
no setter
hasNotFacets bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if facets is null, otherwise false.
no setter
hasNotLabels bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if labels is null, otherwise false.
no setter
hasNotLangs bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if langs is null, otherwise false.
no setter
hasNotReply bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if reply is null, otherwise false.
no setter
hasNotTags bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if tags is null, otherwise false.
no setter
hasNotUnknown bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if this object has not unknown objects, otherwise false.
no setter
hasReply bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if reply is not null, otherwise false.
no setter
hasTags bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if tags is not null, otherwise false.
no setter
hasUnknown bool

Available on PostRecord, provided by the $PostRecordExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
labels UPostLabel?
Self-label values for this post. Effectively content warnings.
no setterinherited
langs List<String>?
Indicates human language of post primary text content.
no setterinherited
reply ReplyRef?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>?
Additional hashtags, in addition to any included in post text and facets.
no setterinherited
text String
The primary post content. May be an empty string, if there are embeds.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited