makeNotifications method
Implementation
void makeNotifications(bool insert, ListNotifications res) {
List<Notification> list = res.notifications;
for (var notification in list) {
dedupeMap[notification.indexedAt] = notification;
}
notifications =
SplayTreeMap.of(dedupeMap, (a, b) => b.compareTo(a)).values.toList();
// Finally, set the cursor for next load.
cursor = res.cursor;
_makeUris(list);
}