resource_portable 3.0.0 icon indicating copy to clipboard operation
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.

5
likes
130
pub points
66%
popularity

Publisher

unverified uploader

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

Homepage

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

typed_data

More

Packages that depend on resource_portable