Skip to content

Instantly share code, notes, and snippets.

@redbrogdon
Created August 1, 2018 17:10
Show Gist options
  • Select an option

  • Save redbrogdon/dd0419f257fcc96a648d975dbff0dcb1 to your computer and use it in GitHub Desktop.

Select an option

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