commit | 70c759718b02e078b864ca46eb5dffcfa4bbcfc8 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Wed Jul 18 12:42:48 2018 +0200 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Wed Jul 18 12:42:48 2018 +0200 |
tree | dec6b29c76144151d1fb1cf428018fb4645131c2 | |
parent | b786afa7567fc6b95c185edb01cc4e9d3dadbe30 [diff] |
Update SDK upper bound to 3.0.0. Prepare to release.
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.