dismiss method
- String barcode
Removes a barcode from the barcodes and from the scores.
Implementation
void dismiss(String barcode) {
localDatabase.upToDate.loseInterest(barcode);
initialBarcodes.remove(barcode);
int? index;
int i = 0;
for (final MatchedScoreV2 score in scores) {
if (score.barcode == barcode) {
index = i;
}
i++;
}
if (index == null) {
return;
}
scores.removeAt(index);
}