resource_portable 2.1.7 copy "resource_portable: ^2.1.7" to clipboard
resource_portable: ^2.1.7 copied to clipboard

outdated

Reading resource data from (package and other) files (portable fork for Web).

Resource (portable) #

  • Note: This package is a portable (Web compatible) fork from original resource package.
  • The usage of this package should be the same of original resource package, beside import line.

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_portable/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.

Author #

Graciliano M. Passos: gmpassos@GitHub.

License #

Dart free & open-source license.

6
likes
0
pub points
81%
popularity

Publisher

unverified uploader

Reading resource data from (package and other) files (portable fork for Web).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

typed_data

More

Packages that depend on resource_portable