delete method
- ProductList productList
Implementation
Future<bool> delete(ProductList productList) async {
final LazyBox<_BarcodeList> box = _getBox();
final String key = getKey(productList);
localDatabase.upToDateProductList.setLocalUpToDate(key, <String>[]);
if (!box.containsKey(key)) {
return false;
}
await box.delete(key);
return true;
}