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) {
  super.verifyBytes(data);

  try {
    convert(data);
  } on Exception catch (ex) {
    throw BarcodeException(ex.toString());
  }
}