Skip to content

Commit

Permalink
Rename changed to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jan 31, 2022
1 parent 94bb3b4 commit 9e31b81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/src/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class RealmList<T> extends collection.ListBase<T> {
realmCore.listClear(this);
}

Stream<RealmListChanges<T>> get changed => realmCore
.listChanged(
Stream<RealmListChanges<T>> get changes => realmCore
.listChanges(
this,
realm.scheduler.handle,
)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/native/realm_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class _RealmCore {
return controller.stream;
}

Stream<RealmCollectionChanges> listChanged(RealmList list, SchedulerHandle scheduler) {
Stream<RealmCollectionChanges> listChanges(RealmList list, SchedulerHandle scheduler) {
late StreamController<RealmCollectionChanges> controller;

void callback(Pointer<Void> data) {
Expand Down
2 changes: 1 addition & 1 deletion test/realm_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ Future<void> main([List<String>? args]) async {
realm.write(() {}); // dummy write to raise notification from previous write
}

final stream = (team.players as RealmList<Person>).changed.asBroadcastStream(onCancel: (s) => s.cancel());
final stream = (team.players as RealmList<Person>).changes.asBroadcastStream(onCancel: (s) => s.cancel());

var callbacks = 0;
final subscription = stream.listen((_) => ++callbacks);
Expand Down

0 comments on commit 9e31b81

Please sign in to comment.