Flutter Error:Class has no instance getter ‘length’

Today,I am trying to create a list with items loaded from a remote server on a screen, but i did not define in modal

my code is

and mu modal code is

since i did not define country so error appears

now i will define country in modal

now, my code is running perfectly

Related Posts

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Artificial Intelligence