getAvailableBarcodes method

Iterable<String> getAvailableBarcodes()

List only barcodes where the product exists

Implementation

Iterable<String> getAvailableBarcodes() => _states
    .where(
      (MapEntry<String, ScannedProductState> entry) =>
          entry.value == ScannedProductState.FOUND ||
          entry.value == ScannedProductState.CACHED,
    )
    .keys;