resource_portable 2.1.7

Dart native js
Flutter Android iOS web

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.

0
likes
90
pub points
75%
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