mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| README.md | 2 years ago | |
README.md
Input/Output Shim
This directory contains an API shim for doing various forms of IO across different platforms. Dart chooses at compile time which of the three files to use:
-
interface.dartis used by the Dart Analyzer for static checking. It defines the "expected" interface of the other two files, although there aren't strong checks that their interfaces are exactly the same. -
vm.dartis used by the Dart VM, and defines IO operations in terms of thedart:iolibrary. -
js.dartis used by JS platforms. On Node.js, it will use Node'sfsandprocessAPIs for IO operations. On other JS platforms, most IO operations won't work at all, although messages will still be emitted withconsole.log()andconsole.error().