DetectionResult constructor

const DetectionResult({
  1. required ScanMode mode,
  2. required String detectorName,
  3. bool hasContent = false,
  4. String rawText = '',
  5. double confidence = 0.0,
  6. List<BarcodeResult> barcodes = const [],
  7. List<Rect> boundingBoxes = const [],
  8. List<List<Offset>> cornerSets = const [],
  9. Map<String, dynamic> metadata = const {},
  10. Duration detectionTime = Duration.zero,
})

Implementation

const DetectionResult({
  required this.mode,
  required this.detectorName,
  this.hasContent = false,
  this.rawText = '',
  this.confidence = 0.0,
  this.barcodes = const [],
  this.boundingBoxes = const [],
  this.cornerSets = const [],
  this.metadata = const {},
  this.detectionTime = Duration.zero,
});