editComment method
- String commentSectionID,
- CommentModel comment
Edits a comment with the given text.
Implementation
Future<void> editComment(
String commentSectionID,
CommentModel comment,
) async {
instance.collection('comments').doc(commentSectionID).update({
comment.commentID: comment.toPartialJson(),
'lastEdited': comment.commentID,
});
}