accessing a nested json file in flutter

You need to make a cast on the element of your movie list.

print((moviesDB['movies'][0] as Map<String, dynamic>)['title']);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top