mostFrequentBarcode property

String mostFrequentBarcode

returns the barcode with the most results

Implementation

String get mostFrequentBarcode => _barcodeResults.keys.reduce(
      (a, b) => countOf(a) > countOf(b) ? a : b,
    );