removeKey method

Future<bool> removeKey(
  1. String barcode
)

Implementation

Future<bool> removeKey(String barcode) async {
  final Map<String, List<String>> value = await getAll();
  if (value.remove(barcode) != null) {
    await _getBox().put(_key, value);
    localDatabase.notifyListeners();
    return true;
  }
  return false;
}