commit | 37e17ce4dcdd76eea13f3c52b8fe4d2df8349739 | [log] [tgz] |
---|---|---|
author | John McDole <jtmcdole@gmail.com> | Fri Jun 30 14:51:42 2017 -0700 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Fri Jun 30 23:51:42 2017 +0200 |
tree | efc171d865f2c546435f08a8ca42d066b50f9987 | |
parent | 55f4a92a872902f2c8bddab55f80f1ca634c794d [diff] |
Update test to support IPV6 (#26) looks good. Thanks.
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.