| commit | d3c872a24e5474af4bd71c8d62e96f5b42e4997f | [log] [tgz] |
|---|---|---|
| author | Kevin Moore <[email protected]> | Mon Dec 30 20:31:19 2019 |
| committer | GitHub <[email protected]> | Mon Dec 30 20:31:19 2019 |
| tree | 83c0bd1ef9103764e11fc1053a7718a5eb28689e | |
| parent | 88cb3ad1b9596688220190f50136223918bd3bcf [diff] |
fix new pedantic lints, remove pubspec author (#46)
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.