Challenge: Fetching Movies at App Startup

In this lesson, you'll complete a challenge that tests your understanding of the initState() method.

We'll cover the following

Challenge: Fetching data at startup

In this challenge, you’ll understand how data can be loaded at the app’s startup using the initState() method.

In this challenge, you’ll print a counter to track the number of times the fetchMovies() method is called. The counter increment and printing code are already added for you. Your task is to call fetchMovies() from the right place.

Hint: Call fetchMovies() from the initState() method.

Get hands-on with 1200+ tech skills courses.