all<T extends RealmObject> method

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>() {
  final metadata = _metadata.getByType(T);
  final handle = this.handle.findAll(metadata.classKey);
  return RealmResultsInternal.create<T>(handle, this, metadata);
}