commit | b786afa7567fc6b95c185edb01cc4e9d3dadbe30 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Tue Jul 10 12:58:08 2018 -0700 |
committer | Kevin Moore <kevmoo@google.com> | Tue Jul 10 12:58:08 2018 -0700 |
tree | 89c4ef4c38c74db5346e66d584bf2b69fb4be29f | |
parent | bed607263e5a7c3a44fde5bda1428ce9c3672702 [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.