This class represents different levels of security to be used within
package:qr_plus. Each layer adds more security to the data transfer,
and the layer to be used and their parameters are determined by the
package user to fit their needs. Each layer adds the layer specific
configuration on top of the previouse layers configuration.
The available layers
(from least to most secure) are:
A wrapper around MobileScannerController, which exposes the same methods while
deprecating MobileScannerController.barcodes. It is necessary to deprecate it, since
the data that the scanner is reading, is the raw data which has to be
processed and decoded by package:qr_plus before showing to the package user.
Captures the status or a QR code validation operations, as well as the
rendered and validated data / object so that it can be used in any
secondary operations (to avoid re-rendering). It also keeps any exception
that was thrown.
Represents a specific element / part of a QR code. This is used to isolate
the different parts so that we can style and modify specific parts
independently.
A status which indicates whether the QR code is authentic or not. It is up to the user of
this package to decide what to do with the data based on the authenticity status.
Note: QrPlusAuthenticity.noNetwork and QrPlusAuthenticity.screenRecording
do not guaurantee that the data is not authentic. They only indicate the possibility
that there is some sort of cheating attempt going on.