readAll method
Marks all notifications as read.
Returns:
- A Future that completes when all notifications are marked as read.
Implementation
Future<void> readAll() async {
return dio.post(
"/read-all",
data: {},
).then(
(response) => response.data,
);
}