commit | f8e37558a1c4f54550aa463b88a6a831e3e33cd6 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Mon Jun 03 08:46:34 2019 -0700 |
committer | Kevin Moore <kevmoo@users.noreply.github.com> | Mon Jun 03 08:46:34 2019 -0700 |
tree | 15a5d6f4b6db54a8116170f652b65dcf282d4915 | |
parent | 8ab789eeab1393dbbb8511fa7ba3869eb7a489af [diff] |
Cast stream to List<int> (#37) This is in preparation for HttpClientResponse implementing Stream<Uint8List>. It is a forwards-compatible change that should be a no-op for existing usages. https://github.com/dart-lang/sdk/issues/36900
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.