luhn library


checkLuhnValidity(String ccNum) bool
Implementation of the Luhn algorithm in Dart It is also known as the "modulus 10" algorithm For more info on Luhn algorithm check these URLS Checks the validity of the card number using the Luhn algorithm (the modulus 10 algorithm) This method assumes that the incoming string is trimmed of whitespace and does not contain non-numerical characters. i.e.' -' or 'a-z'