.. index:: 
  !BarcodeReader.decode Method
  
.. _id3_bioseal_barcode_reader_decode_class_method:

===============================================================================
BarcodeReader.decode Method
===============================================================================

Module: :ref:`BarcodeReader<id3_bioseal_barcode_reader_class>`

Definition
----------

Attempts to decode a barcode from the provided raw image data.


.. code:: Dart

    bool decode(Uint8List? data)

**Parameters**

.. line-block::

    ``data`` Uint8List
    :guilabel:`in` An array of bytes representing the raw image data that contains the barcode to be decoded.


**Returns**

.. line-block::

    ``bool``
    A boolean output that indicates the success of the decoding process. It is set to 'true' if the barcode is successfully decoded, otherwise 'false'.

**Exceptions**

.. line-block::

    :ref:`BiosealException<id3_bioseal_bioseal_exception>`
    An error has occurred during Bioseal Library execution.



