Last active
February 26, 2022 16:04
-
-
Save pawelsa/fa491897401581ede2c1e736cb064d7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<PageContent> getPopular(int page) { | |
return http.get( | |
Uri.parse( | |
"${baseUrl}popular?api_key=${Secret.apiKey}&language=en-US&page=$page", | |
), | |
) | |
.then((value) => apiMovieContentFromJson(value.body)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment