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

Reading resource data from files in a portable way (VM, Web, Flutter and native).

example/resource_portable_example.dart

import 'dart:convert' show utf8;

import 'package:resource_portable/resource.dart' show Resource;

main() async {
  var resource = Resource("package:foo/foo_data.txt");
  var content = await resource.readAsString(encoding: utf8);
  print(content);
}
6
likes
140
pub points
81%
popularity

Publisher

unverified uploader

Reading resource data from files in a portable way (VM, Web, Flutter and native).

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, path, typed_data

More

Packages that depend on resource_portable