credit_card_number_input_formatter library

Classes

CardSystem
CardSystemData
CreditCardNumberInputFormatter

Functions

formatAsCardNumber(String cardNumber, {bool useSeparators: true}) String
isCardValidNumber(String cardNumber) bool
checks not only for length and characters but also for card system code code. If it's not found the succession of numbers will not be marked as a valid card number