Skip to content

Instantly share code, notes, and snippets.

@palaniraja palaniraja/main.dart
Last active Oct 15, 2018

What would you like to do?
Flutter - Asynchronous programming snippet
import 'dart:convert';
import 'dart:async';
import 'dart:html';
void main(){
_getIPAddress() {
final url = '';
Future<HttpRequest> request = HttpRequest.request(url);
request.then((value) {
}).catchError((error) => print(error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.