commit | 58506bd882890e65529d84750ebe477769cccda2 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Tue Jul 10 12:52:59 2018 -0700 |
committer | Kevin Moore <kevmoo@google.com> | Tue Jul 10 12:52:59 2018 -0700 |
tree | 0cb191a4fbd13b12584cc374b189edc702552360 | |
parent | 895b7fc14ed7a3778d6848bcc09751770605a63b [diff] |
Fix dart2 constants
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.