makeNotifications method

void makeNotifications(
  1. bool insert,
  2. ListNotifications res
)

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);
}