validateBarcodeData static method

bool validateBarcodeData(
  1. String data,
  2. BarcodeType type
)

Validates barcode data for the specified type.

Checks if the provided data is valid for the barcode type.

  • data: The data to validate
  • type: The barcode type to validate against

Returns true if the data is valid for the barcode type.

Implementation

static bool validateBarcodeData(String data, BarcodeType type) {
  return BarcodeGenerator.validateBarcodeData(data, type);
}