find method Null safety

List<T> find()

Finds Objects matching the query.

Implementation

List<T> find() {
  final result = <T>[];
  final errorWrapper = ObjectCollectorError();
  final collector = objectCollector(result, _store, _entity, errorWrapper);
  checkObx(C.query_visit(_ptr, collector, nullptr));
  errorWrapper.throwIfError();
  reachabilityFence(this);
  return result;
}