We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461a948 commit b2c9743Copy full SHA for b2c9743
objectbox/lib/src/native/query/query.dart
@@ -780,9 +780,8 @@ class Query<T> {
780
reachabilityFence(this);
781
try {
782
final idArray = idArrayPtr.ref;
783
- return idArray.count == 0
784
- ? List<int>.filled(0, 0)
785
- : idArray.ids.asTypedList(idArray.count).toList(growable: false);
+ final ids = idArray.ids;
+ return List.generate(idArray.count, (i) => ids[i], growable: false);
786
} finally {
787
C.id_array_free(idArrayPtr);
788
}
0 commit comments