saveCategory method
Implementation
Future<void> saveCategory(PrintCategory category) async {
await store.save(PrintCollection.categories, category.toItem());
_categories = [
for (final entry in _categories)
if (entry.id != category.id) entry,
category,
];
notifyListeners();
}