checkDigit method
Computes the check digit from data
.
Implementation
@override
int checkDigit(String data) {
if (data.isEmpty) {
throw ArgumentError('Must not be null or empty');
}
final c = _compute(data, hasCheckDigit: false);
return _inv[c];
}