Annotations constructor

Annotations({
  1. Iterable<BoundingBox>? bboxes,
  2. Iterable<Classification>? classifications,
})

Implementation

factory Annotations({
  $core.Iterable<BoundingBox>? bboxes,
  $core.Iterable<Classification>? classifications,
}) {
  final $result = create();
  if (bboxes != null) {
    $result.bboxes.addAll(bboxes);
  }
  if (classifications != null) {
    $result.classifications.addAll(classifications);
  }
  return $result;
}