scan static method

List<UCode> scan(
  1. UBitMatrix matrix,
  2. UCodeScanOptions options
)

Implementation

static List<UCode> scan(UBitMatrix matrix, UCodeScanOptions options) {
  try {
    final UAztecDetectorResult? detected = UAztecDetector(matrix).detect();
    if (detected == null) return const <UCode>[];
    return <UCode>[UAztecDecoder.decode(detected)];
  } catch (_) {
    return const <UCode>[];
  }
}