diff --git a/CHANGELOG.md b/CHANGELOG.md index c39e33b18..838beb9fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,7 +52,7 @@ * Report the originating error that caused a client reset to occur. (Core 14.9.0) * Allow the realm package, and code generated by realm_generator to be included when building for web without breaking compilation. (Issue [#1374](https://github.com/realm/realm-dart/issues/1374)) -* Added support for specifying key paths when listening to notifications on a collection with the `changesFor([List? keyPaths])` method, available on `RealmResults`, `RealmList`, `RealmSet`, `RealmMap`. The key paths indicates which changes in properties should raise a notification. +* Added support for specifying key paths when listening to notifications on a collection with the `changesFor([List? keyPaths])` method. Available on `RealmResults`, `RealmList`, `RealmSet`, and `RealmMap`. The key paths indicates what properties should raise a notification, if changed either directly or transitively. ```dart @RealmModel() class _Person { diff --git a/packages/realm_dart/lib/src/handles/native/object_handle.dart b/packages/realm_dart/lib/src/handles/native/object_handle.dart index fbfd1b936..16f34bbab 100644 --- a/packages/realm_dart/lib/src/handles/native/object_handle.dart +++ b/packages/realm_dart/lib/src/handles/native/object_handle.dart @@ -136,7 +136,7 @@ class ObjectHandle extends RootedHandleBase implements intf.Object } @override - NotificationTokenHandle subscribeForNotifications(NotificationsController controller, [List? keyPaths]) { + NotificationTokenHandle subscribeForNotifications(NotificationsController controller, List? keyPaths, int? classKey) { return using((arena) { final kpNative = root.buildAndVerifyKeyPath(keyPaths, classKey); return NotificationTokenHandle(