queryWithParams method

List<QueryRow> queryWithParams(
  1. QueryParams params
)

Implementation

List<QueryRow> queryWithParams(QueryParams params) {
  final result = <QueryRow>[];
  final queryResults = queryRaw(params);
  if (queryResults.isEmpty) return result;
  final len = params.componentIDs.length;
  if (len == 0) return result;
  final rowCount = queryResults.length ~/ len;
  for (int i = 0; i < rowCount; i++) {
    result.add(QueryRow(queryResults, i * len, params.typeIndices));
  }
  return result;
}