card_number library

Functions

validateCardNumber(String ccNumStr, {bool luhnValidateUnionPay = false}) CCNumValidationResults
Validates a credit card number that is passed in as a string.