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 RealmList.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<RealmListChanges<T>> changesFor([List<String>? keyPaths]) {
if (!isManaged) {
throw RealmStateError("Unmanaged lists don't support changes");
}
return (this as ManagedRealmList<T>)._changesFor(keyPaths);
}