changesFor method
Allows listening for changes when the contents of this collection changes on one of the provided keyPaths
.
If keyPaths
is null, default notifications will be raised (same as RealmSet.change
).
If keyPaths
is an empty list, only notifications related to the collection itself will be raised (such as adding or removing elements).
Implementation
Stream<RealmSetChanges<T>> changesFor([List<String>? keyPaths]) {
if (!isManaged) {
throw RealmStateError("Unmanaged sets don't support changes");
}
return (this as ManagedRealmSet<T>)._changesFor(keyPaths);
}