checkDigit method

  1. @override
int checkDigit(
  1. String data
)
override

Computes the check digit from data.

Implementation

@override
int checkDigit(String data) {
  if (data.isEmpty) {
    throw ArgumentError('Must not be null or empty');
  }

  return _compute(data);
}