commit | e8b86ceb30f1cf31ee2626cfcf19d01d52194733 | [log] [tgz] |
---|---|---|
author | Siva <a-siva@users.noreply.github.com> | Mon Jul 01 12:25:52 2019 -0700 |
committer | GitHub <noreply@github.com> | Mon Jul 01 12:25:52 2019 -0700 |
tree | 38f122a7cdbd2788400867070eeecbdfc8f6f8f8 | |
parent | f8e37558a1c4f54550aa463b88a6a831e3e33cd6 [diff] | |
parent | 943abf2e3e47f67367ec5baf6e39a12df6a5022e [diff] |
Merge pull request #38 from a-siva/changelog 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.