decodeRow method

Result decodeRow(
  1. int rowNumber,
  2. BitArray row,
  3. int rowOffset
)

Implementation

Result decodeRow(int rowNumber, BitArray row, int rowOffset) {
  final extensionStartRange = UPCEANReader.findGuardPattern(
    row,
    rowOffset,
    false,
    _extensionStartPattern,
  );
  try {
    return _fiveSupport.decodeRow(rowNumber, row, extensionStartRange);
  } on ReaderException catch (_) {
    return _twoSupport.decodeRow(rowNumber, row, extensionStartRange);
  }
}