verifyBytes method
Implementation
@override
void verifyBytes(Uint8List data) {
String text = utf8.decoder.convert(data);
if (text.length <= 8) {
text = upceToUpca(text);
}
if (text.length < 11) {
throw BarcodeException('Unable to encode "$text", minimum length is 11 for $name Barcode');
}
final String upca = checkLength(text, maxLength);
if (!fallback) {
upcaToUpce(upca);
}
super.verifyBytes(utf8.encoder.convert(text));
}