commit | 55f4a92a872902f2c8bddab55f80f1ca634c794d | [log] [tgz] |
---|---|---|
author | John McDole <jtmcdole@gmail.com> | Fri Jun 30 09:57:57 2017 -0700 |
committer | Florian Loitsch <floitsch@google.com> | Fri Jun 30 18:57:57 2017 +0200 |
tree | 7f11433b400f2e6e4b877a0ef13b5b014bfb5162 | |
parent | d012b2cf3a76162fdadb8a1eb74507239ea45f26 [diff] |
Update to version 2.1.3 (#25)
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.