# BarcodeScannerConfiguration constructor

BarcodeScannerConfiguration({

1. List<BarcodeFormatConfigurationBase>? barcodeFormatConfigurations,
2. List<BarcodeDocumentFormat>? extractedDocumentFormats,
3. bool onlyAcceptDocuments = false,
4. bool returnBarcodeImage = false,
5. BarcodeScannerEngineMode engineMode = BarcodeScannerEngineMode.NEXT_GEN,
6. BarcodeAccumulationConfiguration? accumulationConfig,
7. bool optimizedForOverlays = false,

})

## Implementation

    BarcodeScannerConfiguration({
      List<BarcodeFormatConfigurationBase>? barcodeFormatConfigurations,
      List<BarcodeDocumentFormat>? extractedDocumentFormats,
      this.onlyAcceptDocuments = false,
      this.returnBarcodeImage = false,
      this.engineMode = BarcodeScannerEngineMode.NEXT_GEN,
      BarcodeAccumulationConfiguration? accumulationConfig,
      this.optimizedForOverlays = false,
    })  : barcodeFormatConfigurations =
              barcodeFormatConfigurations ?? [BarcodeFormatCommonConfiguration()],
          extractedDocumentFormats = extractedDocumentFormats ??
              [
                BarcodeDocumentFormat.AAMVA,
                BarcodeDocumentFormat.BOARDING_PASS,
                BarcodeDocumentFormat.DE_MEDICAL_PLAN,
                BarcodeDocumentFormat.MEDICAL_CERTIFICATE,
                BarcodeDocumentFormat.ID_CARD_PDF_417,
                BarcodeDocumentFormat.SEPA,
                BarcodeDocumentFormat.SWISS_QR,
                BarcodeDocumentFormat.VCARD,
                BarcodeDocumentFormat.GS1,
                BarcodeDocumentFormat.HIBC
              ],
          accumulationConfig =
              accumulationConfig ?? BarcodeAccumulationConfiguration();