jan static method

Barcode jan(
  1. String rawValue
)

generate Jan Barcode. rawValue.length must be 13 and rawValue should consist of numbers.

Implementation

static Barcode jan(String rawValue) {
  if (rawValue.length != 13) {
    throw ArgumentError();
  }
  return JANBarcode(rawValue: rawValue);
}