remove method

Future<bool> remove(
  1. String key,
  2. String item
)

Implementation

Future<bool> remove(String key, String item) async {
  final List<String> list = getAll(key);
  if (list.remove(item)) {
    await _getBox().put(key, list);
    localDatabase.notifyListeners();
    return true;
  }
  return false;
}