luhn 1.0.1

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

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));
}