Skip to content

Instantly share code, notes, and snippets.

@pawelsa
Last active February 26, 2022 16:04
Show Gist options
  • Save pawelsa/fa491897401581ede2c1e736cb064d7b to your computer and use it in GitHub Desktop.
Save pawelsa/fa491897401581ede2c1e736cb064d7b to your computer and use it in GitHub Desktop.
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