isValidBytes method

  1. @nonVirtual
bool isValidBytes(
  1. Uint8List data
)

Check if the Barcode is valid

Implementation

@nonVirtual
bool isValidBytes(Uint8List data) {
  try {
    verifyBytes(data);
  } catch (_) {
    return false;
  }

  return true;
}