diff --git a/lib/src/results.dart b/lib/src/results.dart index b90f40dab..345a1f9e9 100644 --- a/lib/src/results.dart +++ b/lib/src/results.dart @@ -39,7 +39,11 @@ class RealmResults extends collection.IterableBase with Re } /// Returns the element of type `T` at the specified [index]. - T operator [](int index) { + T operator [](int index) => elementAt(index); + + /// Returns the element of type `T` at the specified [index]. + @override + T elementAt(int index) { if (this is RealmResults) { final handle = realmCore.resultsGetObjectAt(this, index); final accessor = RealmCoreAccessor(metadata, realm.isInMigration);