Are you adding this model to a a brand new flutter project or an existing one? In such case it might help if you do run flutter pub run realm generate --clean command first.
If this is a brand new project then could you run flutter pub deps and send the output here so we can see what dependencies this project has?
Thanks for the quick reply. I started eliminating directories and individual files from the project until I found the offending file. It turns out one of the files had two periods in the file name (‘permission_handler…dart’). I never noticed this since the Flutter project still compiles. After taking out one period the RealmModel generated successfully.
I suggest that the Realm generator should account for this.
Hi,you talking about,[quote=“Alvin_Chan, post:3, topic:213646”]
Thanks for the quick reply. I started eliminating directories and individual files from the project until I found the offending file. It turns out one of the files had two periods in the file name (‘permission_handler…dart’).
[/quote].you have to search on google.