Post class
- Annotations
-
- @freezed
Constructors
-
Post({@typeKey @Default(appBskyFeedDefsPostView) String type, @postRecordConverter required PostRecord record, required ActorBasic author, @AtUriConverter() required AtUri uri, required String cid, @embedViewConverter EmbedView? embed, @Default(0) int replyCount, @Default(0) int repostCount, @Default(0) int likeCount, @Default(0) int quoteCount, @Default(defaultPostViewer) PostViewer viewer, List<
Label> ? labels, ThreadgateView? threadgate, required DateTime indexedAt}) -
constfactory
-
Post.fromJson(Map<
String, Object?> json) -
factory
Properties
-
no setterinherited
- cid → String
-
no setterinherited
-
copyWith
→ $PostCopyWith<
Post> -
Create a copy of Post
with the given fields replaced by the non-null parameter values.
no setterinherited
- embed → EmbedView?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexedAt → DateTime
-
no setterinherited
- isLiked → bool
-
Returns true if the authenticated user has already liked this record,
otherwise false.
no setter
- isNotLiked → bool
-
Returns true if the authenticated user has not liked yet this record,
otherwise false.
no setter
- isNotReplyDisabled → bool
-
Returns true if this post is not reply disabled, otherwise false.
no setter
- isNotReposted → bool
-
Returns true if the authenticated user has not reposted yet this record,
otherwise false.
no setter
- isReplyDisabled → bool
-
Returns true if this post is reply disabled, otherwise false.
no setter
- isReposted → bool
-
Returns true if the authenticated user has already reposted this record,
otherwise false.
no setter
-
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
- type → String
-
no setterinherited
- uri → AtUri
-
no setterinherited
- viewer → PostViewer
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Post to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toStrongRef(
) → StrongRef - Returns the StrongRef representation of this record.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited