From e8d4d81097392886a24eb6e87496d8bce512d7a2 Mon Sep 17 00:00:00 2001 From: Ferdinando Papale <4850119+papafe@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:10:16 +0200 Subject: [PATCH] Corrected error --- packages/realm_dart/lib/src/set.dart | 6 +++--- packages/realm_dart/test/realm_set_test.dart | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/realm_dart/lib/src/set.dart b/packages/realm_dart/lib/src/set.dart index 96a4f832f..d53d271fb 100644 --- a/packages/realm_dart/lib/src/set.dart +++ b/packages/realm_dart/lib/src/set.dart @@ -104,17 +104,17 @@ class UnmanagedRealmSet extends collection.DelegatingSet w @override // ignore: unused_element - RealmObjectMetadata? get _metadata => throw RealmError("Unmanaged RealmSets don't have metadata associated with them."); + RealmObjectMetadata? get _metadata => throw RealmError("Unmanaged sets don't have metadata associated with them."); @override // ignore: unused_element - set _metadata(RealmObjectMetadata? _) => throw RealmError("Unmanaged RealmSets don't have metadata associated with them."); + set _metadata(RealmObjectMetadata? _) => throw RealmError("Unmanaged sets don't have metadata associated with them."); @override bool get isValid => true; @override - Stream> get changes => throw RealmStateError("Unmanaged RealmSets don't support changes"); + Stream> get changes => throw RealmStateError("Unmanaged sets don't support changes"); @override RealmResults asResults() => throw RealmStateError("Unmanaged sets can't be converted to results"); diff --git a/packages/realm_dart/test/realm_set_test.dart b/packages/realm_dart/test/realm_set_test.dart index 5d3cb7f17..f226cf425 100644 --- a/packages/realm_dart/test/realm_set_test.dart +++ b/packages/realm_dart/test/realm_set_test.dart @@ -765,8 +765,8 @@ void main() { test('UnmanagedSet.changes throws', () { final set = TestRealmSets(1); - expect(() => set.objectsSet.changes, throws("Unmanaged RealmSets don't support changes")); - expect(() => set.objectsSet.changesFor(["test"]), throws("Unmanaged RealmSets don't support changes")); + expect(() => set.objectsSet.changes, throws("Unmanaged sets don't support changes")); + expect(() => set.objectsSet.changesFor(["test"]), throws("Unmanaged sets don't support changes")); }); test('RealmSet.changes - await for with yield ', () async {