commit | aaece51b9560d11cad9518c0a796eae704e2b317 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue Jul 02 12:58:42 2019 +0200 |
committer | GitHub <noreply@github.com> | Tue Jul 02 12:58:42 2019 +0200 |
tree | 5340a6e9d535ade0bf1d9ee6aa6086276a066f23 | |
parent | 2470e01dff62279a2c4f3920798b0b9032e93996 [diff] |
Update changelog format (#41)
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(encoding: utf8); print(string); }
Please check out the API docs.
Please file feature requests and bugs at the issue tracker.