markThreadAsRead method

Future<void> markThreadAsRead({
  1. required String threadId,
})

Marks an email as read in the Instantly API.

Implementation

Future<void> markThreadAsRead({
  required String threadId,
}) async {
  await _dio.post<void>(
    '/unibox/threads/$threadId/mark-as-read',
    data: {
      'api_key': _apiKey,
    },
  );
}