commit | 8ab789eeab1393dbbb8511fa7ba3869eb7a489af | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Thu Aug 16 11:09:29 2018 -0700 |
committer | GitHub <noreply@github.com> | Thu Aug 16 11:09:29 2018 -0700 |
tree | 9bedb6a59ff3750cfb9ff013381362dfa59735ad | |
parent | 70c759718b02e078b864ca46eb5dffcfa4bbcfc8 [diff] |
Fix pkg:test dependency (#34)
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.