remove method

bool remove(
  1. String barcode
)

Removes a barcode from the list

Returns false if not already in the list Don't forget to update the database afterwards

Implementation

bool remove(String barcode) {
  if (!_barcodes.contains(barcode)) {
    return false;
  }
  _barcodes.remove(barcode);
  return true;
}