resource_portable 3.1.0 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);
}