newList method

void newList(
  1. String _updatedAtsign
)

called when any new/updated data is received in the main app

Implementation

void newList(String _updatedAtsign) async {
  if ((atsignsToTrack != null) &&
      ((atsignsToTrack ?? []).contains(_updatedAtsign))) {
    var _user = MasterLocationService()
        .getHybridModel(_updatedAtsign, id: notificationID);
    if (_user != null) {
      await updateDetails(_user);
    } else {
      removeUser(_updatedAtsign);
    }

    if (!_atHybridUsersController.isClosed) {
      _atHybridUsersController.add(hybridUsersList);
    }
  }
}