PointGroup constructor

PointGroup({
  1. GroupId? id,
  2. Iterable<ScoredPoint>? hits,
  3. RetrievedPoint? lookup,
})

Implementation

factory PointGroup({
  GroupId? id,
  $core.Iterable<ScoredPoint>? hits,
  RetrievedPoint? lookup,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (hits != null) {
    $result.hits.addAll(hits);
  }
  if (lookup != null) {
    $result.lookup = lookup;
  }
  return $result;
}