readNotification method
Implementation
Future<void> readNotification({
required final String uid,
required final String notificationId,
}) async {
try {
final _notifRef = PeamanReferenceHelper.notificationsCol(
uid: uid,
).doc(notificationId);
await _notifRef.update({
'read': true,
});
print('Success: Reading notification $notificationId');
} catch (e) {
print(e);
print('Error!!!: Reading notification');
}
}