checkDigit method
Computes the check digit from data
.
Implementation
@override
int checkDigit(String data) {
if (data.length != 9) {
throw ArgumentError('Must not be null and must contain 9 digits');
}
return (11 - (_compute(data) % 11)) % 11;
}