Skip to content

Instantly share code, notes, and snippets.

@RedBrogdon
Created August 1, 2018 17:10
Show Gist options
  • Save RedBrogdon/dd0419f257fcc96a648d975dbff0dcb1 to your computer and use it in GitHub Desktop.
Save RedBrogdon/dd0419f257fcc96a648d975dbff0dcb1 to your computer and use it in GitHub Desktop.
Testing out syntax highlighting for Medium articles.
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