read method
Read file contents as UTF-8 text.
Throws BundleResourceNotFoundException on missing file.
Implementation
Future<String> read(String relativePath) async {
final file = _resolve(relativePath);
if (!await file.exists()) {
throw BundleResourceNotFoundException(folder.name, relativePath);
}
return file.readAsString();
}