BitMatrixParser constructor

BitMatrixParser(
  1. BitMatrix _bitMatrix
)

@param bitMatrix BitMatrix to parse @throws FormatException if dimension is not >= 21 and 1 mod 4

Implementation

BitMatrixParser(this._bitMatrix) {
  final dimension = _bitMatrix.height;
  if (dimension < 21 || (dimension & 0x03) != 1) {
    throw FormatsException.instance;
  }
}