find method
Finds objects matching the query.
Returns a list of matching objects. An empty list if no object matches.
Note: if no QueryBuilder.order conditions are present, the order is arbitrary (sometimes ordered by ID, but never guaranteed to).
Implementation
List<T> find() {
final result = <T>[];
final errorWrapper = ObjectVisitorError();
visitCallback(Pointer<Uint8> data, int size) {
try {
result.add(_entity.objectFromData(_store, data, size));
return true;
} catch (e) {
errorWrapper.error = e;
return false;
}
}
visit(_ptr, visitCallback);
errorWrapper.throwIfError();
return result;
}