commit | e1a56bb597a08c13d5b35144337175a520439ba7 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue May 22 15:11:38 2018 +0200 |
committer | GitHub <noreply@github.com> | Tue May 22 15:11:38 2018 +0200 |
tree | c935294e688de927157bfe88a329c946084df0e5 | |
parent | b37581ff38e390614d77563146ce1498a9e3e823 [diff] |
Remove upper case constants (#29) * Remove usage of upper-case constants. * update SDK version * remove stable from Travis config
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.