Name: resource
Owner: Dart
Description: Resource loading library.
Created: 2015-10-05 09:49:19.0
Updated: 2018-05-22 13:11:40.0
Pushed: 2018-05-22 13:11:39.0
Homepage: https://pub.dartlang.org/packages/resource
Size: 43
Language: Dart
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
rt 'package:resource/resource.dart' show Resource;
rt 'dart:convert' show utf8;
() async {
r resource = new Resource("package:foo/foo_data.txt");
r string = await resource.readAsString(encoding: utf8);
int(string);
Please check out the API docs.
Please file feature requests and bugs at the issue tracker.