DetectedBarcode constructor

DetectedBarcode({
  1. required DOMRectReadOnly boundingBox,
  2. required String rawValue,
  3. required BarcodeFormat format,
  4. required Iterable<Point2D> cornerPoints,
})

Implementation

factory DetectedBarcode(
        {required DOMRectReadOnly boundingBox,
        required String rawValue,
        required BarcodeFormat format,
        required Iterable<Point2D> cornerPoints}) =>
    DetectedBarcode._(
        boundingBox: boundingBox,
        rawValue: rawValue,
        format: format.value,
        cornerPoints: cornerPoints);