verifyBytes method

  1. @override
void verifyBytes(
  1. Uint8List data
)
override

Check if the Barcode is valid. Throws BarcodeException with a proper message in case of error

Implementation

@override
void verifyBytes(Uint8List data) {
  final text = Uint8List.fromList(
    adaptData(utf8.decoder.convert(data)).codeUnits,
  );
  shortestCode(text);
  super.verifyBytes(text);
}