CommentDataMutations extension
Extension functions for CommentData to handle common operations.
- on
Methods
-
removeReaction(
CommentData updatedComment, FeedsReactionData reaction, String currentUserId) → CommentData -
Available on CommentData, provided by the CommentDataMutations extension
Removes a reaction from this comment. -
removeReply(
CommentData reply) → CommentData -
Available on CommentData, provided by the CommentDataMutations extension
Removes a reply from this comment. -
updateWith(
CommentData updated, {List< FeedsReactionData> ? ownReactions}) → CommentData -
Available on CommentData, provided by the CommentDataMutations extension
Updates this comment with new data while preserving own reactions. -
upsertReaction(
CommentData updatedComment, FeedsReactionData reaction, String currentUserId, {bool enforceUnique = false}) → CommentData -
Available on CommentData, provided by the CommentDataMutations extension
Adds or updates a reaction in this comment. -
upsertReply(
CommentData reply, Comparator< CommentData> compare) → CommentData -
Available on CommentData, provided by the CommentDataMutations extension
Adds or updates a reply in this comment. -
upsertUniqueReaction(
CommentData updatedComment, FeedsReactionData reaction, String currentUserId) → CommentData -
Available on CommentData, provided by the CommentDataMutations extension
Adds or updates a reaction in this comment with unique enforcement.