luhnChecksum static method
Calculates the Luhn checksum for a list of digits (alternative implementation).
The digits
parameter is a list of digits for which the checksum is calculated.
Returns the calculated Luhn checksum as an integer.
Implementation
static int luhnChecksum(List<int> digits) => Luhn.checksum(digits.join());