universal_io 2.0.4 icon indicating copy to clipboard operation
universal_io: ^2.0.4 copied to clipboard

Cross-platform 'dart:io' that works in all platforms (browsers, Flutter, and VM).

example/example.dart

import 'package:universal_io/io.dart';

void main() async {
  // Use 'dart:io' HttpClient API.
  final httpClient = HttpClient();
  final request = await httpClient.getUrl(Uri.parse('http://google.com'));
  final response = await request.close();
  print(response.toString());
}
150
likes
130
pub points
98%
popularity

Publisher

verified publisher icondint.dev

Cross-platform 'dart:io' that works in all platforms (browsers, Flutter, and VM).

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.Apache-2.0, BSD-3-Clause (LICENSE)

Dependencies

collection, crypto, meta, typed_data

More

Packages that depend on universal_io