isValid static method

bool isValid(
  1. String? barcode
)

EAN13 and EAN8 are only supported by the OFF API

Implementation

static bool isValid(String? barcode) {
  if (barcode == null) {
    return false;
  }

  return _AbstractBarcodeValidator(barcode).isValid;
}