commit | 0ffc9c5d6dad19a1c000310cfd9d101fb013d6be | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Fri Oct 07 13:10:15 2016 +0200 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Fri Oct 07 13:10:15 2016 +0200 |
tree | 7d41fa4fcdc8d241d363ba88546ae24f3bfffd20 | |
parent | 5ac9f73e5369922d5682608b4bfcbd92f1b667ca [diff] |
Update README.md. R=mit@google.com Review URL: https://codereview.chromium.org//2399123003 .
Reading data from package contents and files.
A resource is data that can be read into a Dart program at runtime. A resource is identified by a URI. It can be loaded as bytes or data. The resource URI may be a package: URI.
Example:
import 'package:resource/resource.dart' show Resource; import 'dart:convert' show UTF8; main() async { var resource = new Resource("package:foo/foo_data.txt"); var string = await resource.readAsString(UTF8); print(string); }
Please check out the API docs.
Please file feature requests and bugs at the issue tracker.