# CommonBarcodeScannerConfiguration constructor

CommonBarcodeScannerConfiguration({

1. List<BarcodeDocumentFormat>? extractedDocumentFormats,
2. bool onlyAcceptDocuments = false,
3. UpcEanExtensionBehavior extensions = UpcEanExtensionBehavior.ALLOW_ANY,
4. String barcodesRegexFilter = "",
5. double minimumSizeScore = 0.0,
6. int minimumTextLength = 0,
7. int maximumTextLength = 0,
8. int minimum1DBarcodesQuietZone = 10,
9. bool stripCheckDigits = false,
10. bool useIATA2OF5Checksum = true,
11. bool useCode11Checksum = true,
12. List<BarcodeFormat>? barcodeFormats,
13. MsiPlesseyChecksumAlgorithm msiPlesseyChecksumAlgorithm = MsiPlesseyChecksumAlgorithm.MOD_10,
14. AustraliaPostCustomerFormat australiaPostCustomerFormat = AustraliaPostCustomerFormat.ALPHA_NUMERIC,
15. bool lowPowerMode = false,
16. Gs1Handling gs1Handling = Gs1Handling.PARSE,
17. bool returnBarcodeImage = false,

})

## Implementation

    CommonBarcodeScannerConfiguration({
      List<BarcodeDocumentFormat>? extractedDocumentFormats,
      this.onlyAcceptDocuments = false,
      this.extensions = UpcEanExtensionBehavior.ALLOW_ANY,
      this.barcodesRegexFilter = "",
      this.minimumSizeScore = 0.0,
      this.minimumTextLength = 0,
      this.maximumTextLength = 0,
      this.minimum1DBarcodesQuietZone = 10,
      this.stripCheckDigits = false,
      this.useIATA2OF5Checksum = true,
      this.useCode11Checksum = true,
      List<BarcodeFormat>? barcodeFormats,
      this.msiPlesseyChecksumAlgorithm = MsiPlesseyChecksumAlgorithm.MOD_10,
      this.australiaPostCustomerFormat =
          AustraliaPostCustomerFormat.ALPHA_NUMERIC,
      this.lowPowerMode = false,
      this.gs1Handling = Gs1Handling.PARSE,
      this.returnBarcodeImage = false,
    })  : 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
              ],
          barcodeFormats = barcodeFormats ??
              [
                BarcodeFormat.AZTEC,
                BarcodeFormat.CODABAR,
                BarcodeFormat.CODE_39,
                BarcodeFormat.CODE_93,
                BarcodeFormat.CODE_128,
                BarcodeFormat.DATA_MATRIX,
                BarcodeFormat.DATABAR,
                BarcodeFormat.DATABAR_EXPANDED,
                BarcodeFormat.DATABAR_LIMITED,
                BarcodeFormat.EAN_13,
                BarcodeFormat.EAN_8,
                BarcodeFormat.ITF,
                BarcodeFormat.MICRO_QR_CODE,
                BarcodeFormat.PDF_417,
                BarcodeFormat.QR_CODE,
                BarcodeFormat.UPC_A,
                BarcodeFormat.UPC_E
              ];