all method

RealmResults<RealmObject> all(
  1. String className
)

Returns all RealmObjects of type className in the Realm

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

Implementation

RealmResults<RealmObject> all(String className) {
  final metadata = _realm._metadata.getByName(className);
  final handle = _realm.handle.findAll(metadata.classKey);
  return RealmResultsInternal.create<RealmObject>(handle, _realm, metadata);
}