editComment method
Edit a comment. Parameters
comment
The comment to editcontent
Comment contenttoken
The token to use for authentication (optional if you have set a global token).
Implementation
Future<Comment> editComment(
{required Comment comment,
required String content,
String? token}) async {
APIHttpResponse response = await httpClient.patch(
'/comment/${comment.uuid}',
body: {'content': content},
token: token);
return Comment.fromMap(response.data);
}