addAll<T extends RealmObject> method Null safety

void addAll<T extends RealmObject>(
  1. Iterable<T> items
)

Adds a collection RealmObjects to this Realm.

If the collection contains items that are already managed by this Realm, they will be ignored. This method behaves as calling add multiple times.

Implementation

void addAll<T extends RealmObject>(Iterable<T> items) {
  for (final i in items) {
    add(i);
  }
}