universal_io 0.0.1

  • README.md
  • Installing
  • Versions
  • new46


  • A Dart package that supports a subset of 'dart:io' in all platforms (browser, VM, and Flutter).
  • Currently, the package supports:
    • FileSystemEntity and related classes
      • In browser, access to all directories and files is denied.
      • You can override behavior inside a zone.
    • HTTPClient
      • In browser, a notable difference to VM/Flutter is that a connection to the server is established only after the HttpClientRequest.close() has been invoked.
    • Platform
      • You can override behavior inside a zone.


Licensed under the MIT License. Some of the source code was adopted from the original 'dart:io' in Dart SDK.


  • Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  universal_io: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:universal_io/io.dart';
import 'package:universal_io/io_browser.dart';
import 'package:universal_io/io_driver.dart';
Version Uploaded Documentation Archive
0.0.1 Dec 4, 2018 Go to the documentation of universal_io 0.0.1 Download universal_io 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: web

Platform components identified in package: html.

Health suggestions

Fix lib/src/http/http.dart. (-1 points)

Analysis of lib/src/http/http.dart reported 2 hints:

line 14 col 8: Unused import: 'package:http/browser_client.dart'.

line 15 col 8: Unused import: 'package:http/http.dart'.

Fix lib/src/process.dart. (-0.50 points)

Analysis of lib/src/process.dart reported 1 hint:

line 107 col 11: Always override hashCode if overriding ==.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use universal_io.dart.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
convert ^2.0.2 2.0.2
http ^0.11.3+17 0.11.3+17 0.12.0
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
test ^1.3.0