EAN8 constructor

EAN8({
  1. int? module,
})

Create a EAN8 symbology with the default or required properties.

The arguments module must be non-negative and greater than 0.

EAN8 allows either 7 or 8 digits of numeric data otherwise there is an exception.

If the input is 7 digits of the numeric data, the check digit is calculated automatically.

If the input is 8 digits of the numeric data, the last digit must be valid check digit otherwise remove it, since it has been calculated automatically.

Implementation

EAN8({int? module}) : super(module: module);