BarcodeScannerConfiguration constructor

BarcodeScannerConfiguration({
  1. Color? topBarBackgroundColor,
  2. Color? topBarButtonsColor,
  3. Color? cameraOverlayColor,
  4. Color? finderLineColor,
  5. Color? finderTextHintColor,
  6. String? cancelButtonTitle,
  7. String? enableCameraButtonTitle,
  8. String? enableCameraExplanationText,
  9. String? finderTextHint,
  10. int? autoCancelTimeout,
  11. FinderAspectRatio? finderAspectRatio,
  12. int? finderLineWidth,
  13. bool? successBeepEnabled,
  14. bool? flashEnabled,
  15. CameraOrientationMode? orientationLockMode,
  16. List<BarcodeFormat>? barcodeFormats,
  17. bool? cancelButtonHidden,
  18. BarcodeImageGenerationType? barcodeImageGenerationType,
})

Implementation

BarcodeScannerConfiguration(
    {this.topBarBackgroundColor,
    this.topBarButtonsColor,
    this.cameraOverlayColor,
    this.finderLineColor,
    this.finderTextHintColor,
    this.cancelButtonTitle,
    this.enableCameraButtonTitle,
    this.enableCameraExplanationText,
    this.finderTextHint,
    this.autoCancelTimeout,
    this.finderAspectRatio,
    this.finderLineWidth,
    this.successBeepEnabled,
    this.flashEnabled,
    this.orientationLockMode,
    List<BarcodeFormat>? barcodeFormats,
    this.cancelButtonHidden,
    BarcodeImageGenerationType? barcodeImageGenerationType})
    : barcodeFormats = barcodeFormats ?? [],
      barcodeImageGenerationType =
          barcodeImageGenerationType ?? BarcodeImageGenerationType.NONE;