Clone this repo:
  1. 70c7597 Update SDK upper bound to 3.0.0. by Lasse R.H. Nielsen · 4 weeks ago master 2.1.5
  2. b786afa dartfmt by Kevin Moore · 5 weeks ago
  3. bed6072 test: Fix inference error in loader_http_test by Kevin Moore · 5 weeks ago
  4. 58506bd Fix dart2 constants by Kevin Moore · 5 weeks ago
  5. 895b7fc update .gitignore by Kevin Moore · 5 weeks ago

Resource

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);
}

Learning more

Please check out the API docs.

Features and bugs

Please file feature requests and bugs at the issue tracker.