changesFor method

Stream<RealmMapChanges<T?>> changesFor([
  1. List<String>? keyPaths
])

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 RealmMap.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<RealmMapChanges<T?>> changesFor([List<String>? keyPaths]) {
  if (!isManaged) {
    throw RealmStateError("Unmanaged maps don't support changes");
  }

  return (this as ManagedRealmMap<T?>)._changesFor(keyPaths);
}