Created
March 5, 2018 10:14
-
-
Save mlabouardy/fe9fb672f84bff608db7a5af73dbed3d to your computer and use it in GitHub Desktop.
Invoke API Gateway with Dart
This file contains hidden or 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
| @override | |
| void initState() { | |
| super.initState(); | |
| http.get(this._apiGatewayURL) | |
| .then((response) => response.body) | |
| .then(JSON.decode) | |
| .then((movies) { | |
| movies.forEach(_addMovie); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment