DataBlock class
Encapsulates a block of data within a QR Code.
QR Codes may split their data into multiple blocks, each of which is a unit of data and error-correction codewords. Each is represented by an instance of this class.
@author Sean Owen
Properties
- codewords → Uint8List
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- numDataCodewords → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getDataBlocks(
Uint8List rawCodewords, Version version, ErrorCorrectionLevel ecLevel) → List< DataBlock> - When QR Codes use multiple data blocks, they are actually interleaved. That is, the first byte of data block 1 to n is written, then the second bytes, and so on. This method will separate the data into original blocks.