CardScanOptions class

Constructors

CardScanOptions.new({bool scanExpiryDate = true, bool scanCardHolderName = false, int initialScansToDrop = 1, int validCardsToScanBeforeFinishingScan = 6, bool considerPastDatesInExpiryDateScan = false, int maxCardHolderNameLength = 26, bool enableLuhnCheck = true, bool enableDebugLogs = false, int cardScannerTimeOut = 0})
const

Properties

cardScannerTimeOut int
Timeout duration after which card scanner will just return the current optimal scan result which may contain false positives Timeout is useful when lighting conditions are bad and only few frames capture the card details. Once timeout happens, whatever the details captured till that time will be returned which can even be null Defaults to 0 or no-timeout
final
considerPastDatesInExpiryDateScan bool
setting this to true, will consider past dates also in expiry date scan. If a scanned date in the frame is before the current date, then that date is dropped. Defaults to false
final
enableDebugLogs bool
final
enableLuhnCheck bool
Scanned card numbers are put to "Luhn" algorithm check. Only if it passes the check , then its considered as a valid credit/debit card. Defaults to true since all real cards must pass Luhn algorithm
final
hashCode int
The hash code for this object.
no setterinherited
initialScansToDrop int
This parameter is used so that some valid initial scan results containing false positives are dropped
final
map Map<String, String>
no setter
maxCardHolderNameLength int
Defaults to 26
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanCardHolderName bool
final
scanExpiryDate bool
final
validCardsToScanBeforeFinishingScan int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited