luhn 1.0.1 luhn: ^1.0.1 copied to clipboard
Simple Luhn digit algorithm implementation
Luhn check digit algorithm implementation
import 'package:luhn/luhn.dart';
void main() {
// Five digits code
final code = '92812';
// Code with the checksum
print(Luhn.computeAndAppendCheckDigit(code));
}