Clone this repo:
  1. e8cf38d Delete codereview.settings by Kevin Moore · 3 weeks ago master
  2. 0a45a2d Update pubspec.yaml (#40) by Michael Thomsen · 7 weeks ago
  3. aaece51 Update changelog format (#41) by Lasse R.H. Nielsen · 7 weeks ago
  4. 2470e01 Bump revision to 2.1.6 instead of 2.1.5+1 (#39) by Todd Volkert · 7 weeks ago
  5. e8b86ce Merge pull request #38 from a-siva/changelog by Siva · 7 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.