PostView class

Available extensions
Annotations
  • @freezed

Constructors

PostView.new({@Default(appBskyFeedDefsPostView) @JsonKey(name: r'$type') String $type, @AtUriConverter() required AtUri uri, required String cid, @ProfileViewBasicConverter() required ProfileViewBasic author, @PostRecordConverter() required PostRecord record, @UPostViewEmbedConverter() UPostViewEmbed? embed, @Default(0) int replyCount, @Default(0) int repostCount, @Default(0) int likeCount, @Default(0) int quoteCount, required DateTime indexedAt, @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer, @LabelConverter() List<Label>? labels, @ThreadgateViewConverter() @Default(ThreadgateView()) ThreadgateView threadgate, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
PostView.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
author ProfileViewBasic
no setterinherited
cid String
no setterinherited
copyWith → $PostViewCopyWith<PostView>
no setterinherited
embed UPostViewEmbed?
no setterinherited
hasEmbed bool

Available on PostView, provided by the $PostViewExtension extension

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

Available on PostView, provided by the $PostViewExtension extension

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

Available on PostView, provided by the $PostViewExtension extension

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

Available on PostView, provided by the $PostViewExtension extension

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

Available on PostView, provided by the $PostViewExtension extension

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

Available on PostView, provided by the $PostViewExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
indexedAt DateTime
no setterinherited
labels List<Label>?
no setterinherited
likeCount int
no setterinherited
quoteCount int
no setterinherited
record PostRecord
no setterinherited
replyCount int
no setterinherited
repostCount int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadgate ThreadgateView
no setterinherited
uri AtUri
no setterinherited
viewer ViewerState
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