commit | 0a45a2d6a18d762ed79154b4393a7f8ec12b4e7a | [log] [tgz] |
---|---|---|
author | Michael Thomsen <mit@google.com> | Thu Jul 04 14:43:24 2019 +0200 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Thu Jul 04 14:43:24 2019 +0200 |
tree | 951ae79134009fdbd690f82f4d1bb4abf4d81f1e | |
parent | aaece51b9560d11cad9518c0a796eae704e2b317 [diff] |
Update pubspec.yaml (#40) Don't depend on dev releases unless we really, really have to
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.