BoundingBox constructor

BoundingBox({
  1. String? id,
  2. String? label,
  3. double? xMinNormalized,
  4. double? yMinNormalized,
  5. double? xMaxNormalized,
  6. double? yMaxNormalized,
  7. double? confidence,
})

Implementation

factory BoundingBox({
  $core.String? id,
  $core.String? label,
  $core.double? xMinNormalized,
  $core.double? yMinNormalized,
  $core.double? xMaxNormalized,
  $core.double? yMaxNormalized,
  $core.double? confidence,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (label != null) {
    $result.label = label;
  }
  if (xMinNormalized != null) {
    $result.xMinNormalized = xMinNormalized;
  }
  if (yMinNormalized != null) {
    $result.yMinNormalized = yMinNormalized;
  }
  if (xMaxNormalized != null) {
    $result.xMaxNormalized = xMaxNormalized;
  }
  if (yMaxNormalized != null) {
    $result.yMaxNormalized = yMaxNormalized;
  }
  if (confidence != null) {
    $result.confidence = confidence;
  }
  return $result;
}