iterator property

  1. @override
Iterator<T> get iterator
override

Returns a new Iterator that allows iterating the elements in this RealmResults.

Implementation

@override
Iterator<T> get iterator {
  var results = this;
  if (_supportsSnapshot) {
    final handle = this.handle.snapshot();
    results = RealmResultsInternal.create<T>(handle, realm, _metadata, _skipOffset);
  }
  return _RealmResultsIterator(results);
}