constructResult static method
Implementation
static Result constructResult(List<ExpandedPair> pairs) {
final binary = BitArrayBuilder.buildBitArray(pairs);
final decoder = AbstractExpandedDecoder.createDecoder(binary);
final resultingString = decoder.parseInformation();
final firstPoints = pairs[0].finderPattern!.resultPoints;
final lastPoints = pairs[pairs.length - 1].finderPattern!.resultPoints;
final result = Result(
resultingString,
null,
[firstPoints[0], firstPoints[1], lastPoints[0], lastPoints[1]],
BarcodeFormat.rssExpanded,
);
result.putMetadata(ResultMetadataType.symbologyIdentifier, ']e0');
return result;
}