commit | 943abf2e3e47f67367ec5baf6e39a12df6a5022e | [log] [tgz] |
---|---|---|
author | asiva <asiva@google.com> | Mon Jul 01 11:30:16 2019 -0700 |
committer | asiva <asiva@google.com> | Mon Jul 01 11:30:16 2019 -0700 |
tree | 38f122a7cdbd2788400867070eeecbdfc8f6f8f8 | |
parent | f8e37558a1c4f54550aa463b88a6a831e3e33cd6 [diff] |
Update CHANGELOG.md to reflect changes for version 2.1.5+1
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.