commit | bed607263e5a7c3a44fde5bda1428ce9c3672702 | [log] [tgz] |
---|---|---|
author | Kevin Moore <kevmoo@google.com> | Tue Jul 10 12:58:02 2018 -0700 |
committer | Kevin Moore <kevmoo@google.com> | Tue Jul 10 12:58:02 2018 -0700 |
tree | 62c6e763adb0889e3fde4a11380c27ba47e2f81c | |
parent | 58506bd882890e65529d84750ebe477769cccda2 [diff] |
test: Fix inference error in loader_http_test Fixes https://github.com/dart-lang/resource/issues/31
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.