commit | 61f275c243f408c308c9057e492bde0d6c17d728 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@users.noreply.github.com> | Tue Jul 18 09:59:48 2017 -0700 |
committer | GitHub <noreply@github.com> | Tue Jul 18 09:59:48 2017 -0700 |
tree | 8af25d378bdc67c4c40268eb1ddfdbdad6be62c4 | |
parent | 37e17ce4dcdd76eea13f3c52b8fe4d2df8349739 [diff] |
Updates (#27) * Add analysis options, fix some lints * Update travis to tasks * requires at least SDK 1.20.x * dartfmt * remove unneeded import
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.