seenComments method

Future<DateTime> seenComments(
  1. int documentId
)

Implementation

Future<DateTime> seenComments(int documentId) async {
  final response = await dio.put('/comments/viewed/$documentId');
  return DateTime.parse(response.data['time']);
}