My question is:
I have a product like this: (example)
class Product {
String name;
List<String> categories;
Product({required this.name, required this.categories});
}
I have my list of Categories, and I can show on my screen.
But I’m trying to add, edit and delete that list but I’m stack. 🙁
I’m using flutter_riverpod.
Somebody can give me an example please?
This is my Example data:
Product(name: 'Product Example',
categories: ['Category A', 'Category B', 'Category C'],);