saveAll method
Implementation
Future<void> saveAll() async {
await Future.wait(
_pendingImportances.entries.map(
(MapEntry<String, String> entry) => _userPreferences
.setImportanceForProject(entry.key, entry.value, _project),
),
);
await _saveUnwantedIngredients();
}