all<T extends RealmObject> method Null safety

RealmResults<T> all<T extends RealmObject>()

Returns all RealmObjects of type T in the Realm

The returned RealmResults allows iterating all the values without further filtering.

Implementation

RealmResults<T> all<T extends RealmObject>() {
  RealmMetadata metadata = _getMetadata(T);
  final handle = realmCore.findAll(this, metadata.class_.key);
  return RealmResultsInternal.create<T>(handle, this);
}