DataBlock class

Encapsulates a block of data within a Data Matrix Code.

Data Matrix 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 bbrown@google.com (Brian Brown)

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) List<DataBlock>
When Data Matrix Codes use multiple data blocks, they actually interleave the bytes of each of them. 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.