[오류처리] nullable string to string

in flutter •  4 years ago 

image.png

이런 경우

var title2 = snapshot.data?.list[i].title;
=>
var title2 = snapshot.data?.list[i].title as String;

위와 같이 바꿔주면 OK !

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!