Is there a way to get all declared variables within a class in dart? So what I want to do is get all variables in a list from a class and check each variable if it's null. Any help is appreciated. Thanks.
Asked
Active
Viewed 948 times
2
-
Could you show what you’ve tried for now ? – midugh May 19 '19 at 09:40
-
I wasn't clear the first time. I just edited it – nivla360 May 19 '19 at 09:51
-
https://stackoverflow.com/questions/34819222/getting-all-of-the-variables-of-a-dart-class-for-json-encoding – Mazin Ibrahim May 19 '19 at 09:52