PostRepository class
Post Repo to get AmityPost
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- live ↔ PostGetLiveObject
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createPost(
) → AmityPostCreateTargetSelector - Create Text/Image/Video/File post and retune AmityPost
-
deletePost(
{required String postId, bool hardDelete = false}) → Future - delete the AmityPost
-
getPost(
String postId) → Future< AmityPost> - get composed AmityPost for the psot
-
getPosts(
) → AmityPostGetTargetSelector - Query AmityPost for the user with query builder
-
getPostStream(
String postId) → StreamController< AmityPost> - listen to AmityPost with post id
-
getReaction(
{required String postId}) → GetReactionQueryBuilder - Get AmityReaction for the post Id
-
isFlaggedByMe(
String postId) → Future< bool> - check if post is flagged by me
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reviewPost(
{required String postId}) → PostReviewQueryBuilder - Review the AmityPost, Accept/denied
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited