UPCA constructor

UPCA({
  1. int? module,
})

Create a UPCA symbology with the default or required properties.

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

UPCA allows either 11 or 12 digits of numeric data otherwise there is an exception.

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

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

Implementation

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