resource_portable 3.0.0
resource_portable: ^3.0.0 copied to clipboard

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.

pub package CI GitHub Tag New Commits Last Commits Pull Requests Code size License

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.

2
likes
120
pub points
78%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

gracilianomp@gmail.com

License

BSD (LICENSE)

Dependencies

typed_data

More

Packages that depend on resource_portable