I would like to ask if someone encountered this issue, I have tried cloning my flutter repo from github and opened my app in the root folder of the repository flutter pub get
and after that I tried running it in an emulator however I do get this error…
I have tried doing fluter clean
and fluter pub get
same with flutter pub get
but I got no luck, this is my first time encountering this error so I really have no Idea. Thank you!
2
Answers
you need to add null check(?) in given directions where your error at
You can add null (i) to the error message,and for detail you can check https://dart.dev/null-safety