update method

void update({
  1. Map<String, int>? azMap,
  2. List<Object>? azList,
  3. List<Object>? okList,
  4. int? unread,
})

Implementation

void update({Map<String, int>? azMap, List<Object>? azList, List<Object>? okList, int? unread}) {
  if (azMap != null) {
    this.azMap.clear();
    this.azMap.addAll(azMap);
  }
  if (azList != null) {
    this.azList.clear();
    this.azList.addAll(azList);
  }
  if (okList != null) {
    this.okList.clear();
    this.okList.addAll(okList);
  }
  if (unread != null) {
    _unread = unread;
  }
}