freeze method

RealmResults<T> freeze()

Creates a frozen snapshot of this query.

Implementation

RealmResults<T> freeze() {
  if (isFrozen) {
    return this;
  }

  final frozenRealm = realm.freeze();
  return frozenRealm.resolveResults(this);
}