credit_card_type_detector library

Functions

addCardType(String cardName, CreditCardType type) → void
Adds a custom card type to the card collection
detectCCType(String ccNumStr) List<CreditCardType>
This function determines the potential CC types based on the cardPatterns. Returns a list of CreditCardTypes with the most likely type as the first.
getCardType(String cardName) CreditCardType?
Gets the CreditCardType object associated with the cardName
removeCardType(String cardName) → void
Removes cardName from the card collection
resetCardTypes() → void
Resets the card collection to the default card types
updateCardType(String cardName, CreditCardType type) → void
Updates the card type of the cardName in the card collection