commit | af5a5bf65511943398146cf146e466e5f0b95cb9 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Fri Sep 15 11:11:29 2017 -0700 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Fri Sep 15 20:11:29 2017 +0200 |
tree | 327ed975739d4228ebe958b1f57a46d13479e223 | |
parent | 61f275c243f408c308c9057e492bde0d6c17d728 [diff] |
Bump min required SDK (#28) Allows reliable testing
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.