universal_io 2.2.2 universal_io: ^2.2.2 copied to clipboard
Cross-platform 'dart:io' that adds browser support for HttpClient and some other "dart:io" APIs.
import 'package:universal_io/io.dart';
void main() async {
// Use 'dart:io' HttpClient API.
final httpClient = HttpClient();
final request = await httpClient.getUrl(Uri.parse('https://dart.dev'));
final response = await request.close();
print(response.toString());
}