resource_portable 2.1.8 copy "resource_portable: ^2.1.8" to clipboard
resource_portable: ^2.1.8 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.

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.

6
likes
30
pub points
81%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (LICENSE)

Dependencies

typed_data

More

Packages that depend on resource_portable