0

Yes, I did check this: Provider Docs

And this: Similar question answered on stackoverflow

But is there a way to auto generate different types? cause I don't know how many of these classes a user may need.

Tejas MD
  • 21
  • 1
  • what do mean by auto-generate, please give me an example. – Hosam Hasan Jul 11 '21 at 11:26
  • Like for example, I can create a set of objects without provider with a loop which means I can **generate** objects depending on the requirement. But if it's a provider class, different objects won't be differentiated by `ChangeNotifier` (as answered in the link above). How do I generate objects **Of Provider** such that ``Changenotifier`` can differentiate in the data from different objects? – Tejas MD Jul 13 '21 at 09:23
  • Or if for such situations, provider isn't the right choice, what is? – Tejas MD Jul 13 '21 at 09:28

0 Answers0