ScanOptions constructor

const ScanOptions({
  1. bool scanExpiryDate = true,
  2. bool scanCardHolderName = true,
  3. int initialScansToDrop = 1,
  4. int validCardsToScanBeforeFinishingScan = 1,
  5. List<String> cardHolderNameBlackListedWords = const [],
  6. bool considerPastDatesInExpiryDateScan = false,
  7. int maxCardHolderNameLength = 26,
  8. bool enableLuhnCheck = true,
  9. bool enableDebugLogs = false,
  10. int cardScannerTimeOut = 0,
  11. List<CardHolderPosition> possibleCardHolderNamePositions = const [CardHolderPosition.belowCardNumber],
})

Implementation

const ScanOptions(
    {this.scanExpiryDate = true,
    this.scanCardHolderName = true,
    this.initialScansToDrop = 1,
    this.validCardsToScanBeforeFinishingScan = 1,
    this.cardHolderNameBlackListedWords = const [],
    this.considerPastDatesInExpiryDateScan = false,
    this.maxCardHolderNameLength = 26,
    this.enableLuhnCheck = true,
    this.enableDebugLogs = false,
    this.cardScannerTimeOut = 0,
    this.possibleCardHolderNamePositions = const [
      CardHolderPosition.belowCardNumber
    ]});