editComment method

Future<Comment> editComment(
  1. int documentId,
  2. int commentId, {
  3. String? text,
  4. Map<String, dynamic>? resource,
})

Implementation

Future<Comment> editComment(int documentId, int commentId,
    {String? text, Map<String, dynamic>? resource}) async {
  final response = await dio.put('/comments/$documentId/$commentId',
      data: {'resource': resource, 'text': text});
  return Comment.fromJson(response.data);
}