delete method Null safety
- dynamic productList
Implementation
Future<bool> delete(final ProductList productList) async {
final Box<_BarcodeList> box = _getBox();
final String key = _getKey(productList);
if (!box.containsKey(key)) {
return false;
}
await box.delete(key);
return true;
}