Skip to content

Instantly share code, notes, and snippets.

@pawelsa
Created February 26, 2022 18:33
Show Gist options
  • Save pawelsa/20c991bf15b92bbda2564b85c15edbf0 to your computer and use it in GitHub Desktop.
Save pawelsa/20c991bf15b92bbda2564b85c15edbf0 to your computer and use it in GitHub Desktop.
Future<Response> getPopular(int page) {
return get(
Uri.parse(
"${baseUrl}popular?api_key=${Secret.apiKey}&language=en-US&page=$page",
),
(value) => ContentListResponse.fromJson(jsonDecode(value)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment