deleteComment method
- String commentSectionID,
- CommentModel comment
Deletes a comment with the given commentID and commentSectionID.
Implementation
Future<void> deleteComment(
String commentSectionID,
CommentModel comment,
) async {
instance.collection('comments').doc(commentSectionID).update({
comment.commentID: FieldValue.delete(),
'lastEdited': comment.commentID,
});
}