setUnwantedIngredients method
Sets the unwanted ingredients map.
ingredientsMap is a map where keys are user-facing names and values are
canonical tags.
Implementation
Future<void> setUnwantedIngredients(
Map<String, String> ingredientsMap,
) async {
await _sharedPreferences.setString(
_TAG_UNWANTED_INGREDIENTS,
jsonEncode(ingredientsMap),
);
notifyListeners();
}