How to create Two Variants of Same Class Type in store.dart #139
Unanswered
hardiklakhalani
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to bind JSON to "categories" model class variable. & I also want to keep it as copy inside "filteredCategories" within Store.dart
So here is my code in
Store.dart
class MyStore extends vxStore { Categories? categories; Categories? filteredCategories; MyStore() { categories = Categories(); filteredCategories = Categories(); }
Is this the right way to create two variants of one class type? I'm asking because right now I'm facing an issue. Here is detailed Question:
https://stackoverflow.com/q/70707549/10150914
Beta Was this translation helpful? Give feedback.
All reactions