resource 2.0.2 copy "resource: ^2.0.2" to clipboard
resource: ^2.0.2 copied to clipboard

discontinued
outdatedDart 1 only

Reading resource data from (package and other) files.

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(UTF8);
  print(string);
}

Learning more #

Please check out the API docs.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

2
likes
0
pub points
40%
popularity

Publisher

unverified uploader

Reading resource data from (package and other) files.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

typed_data

More

Packages that depend on resource