Created
August 1, 2018 17:10
-
-
Save RedBrogdon/dd0419f257fcc96a648d975dbff0dcb1 to your computer and use it in GitHub Desktop.
Testing out syntax highlighting for Medium articles.
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
import 'dart:async'; | |
import 'package:http/http.dart' as http; | |
final response = await http.get(myEndpointUrl); | |
if (response.statusCode == 200) { | |
// use the data in response.body | |
} else { | |
// handle a failed request | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment