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));
}
Libraries
- luhn
- Support for doing something awesome.