luhn library

Functions

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 https://en.wikipedia.org/wiki/Luhn_algorithm https://www.geeksforgeeks.org/luhn-algorithm 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'