dart-lang/resource

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

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

Learning more

Please check out the API docs.

Features and bugs

Please file feature requests and bugs at the issue tracker.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.