commit | 47530fce2a6613024fd619ce5f067f032f802bf7 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Thu Jun 28 08:09:58 2018 -0700 |
committer | Kevin Moore <kevmoo@google.com> | Thu Jun 28 08:09:58 2018 -0700 |
tree | a0884d9133515dab5c6800fc75c001f4d400e3f7 | |
parent | e1a56bb597a08c13d5b35144337175a520439ba7 [diff] |
dartfmt
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.