delete method Null safety

Future<bool> delete(
  1. 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;
}