commit | 88cb3ad1b9596688220190f50136223918bd3bcf | [log] [tgz] |
---|---|---|
author | Keerti Parthasarathy <keertip@users.noreply.github.com> | Tue Oct 01 09:17:27 2019 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 01 09:17:27 2019 -0700 |
tree | ec569fbb390e81e5201ec987a714e1bcd0424320 | |
parent | e8cf38de2eca0805a6c47e9be7f32cccbfdff4c4 [diff] |
Update resource package, fix analysis hints/lints (#43) * Update resource package, fix analysis hints/lints * format files * format file * Add new line at end of file
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.