readString method
Reads file contents.
Implementation
@override
Future<String> readString(String path) async {
if (path.endsWith('html')) {
return _native.readString(path);
}
if (path.contains('pubspec.yaml')) {
return "name: demo\nversion: 0.3.27+4041";
}
if (path.contains('CHANGELOG.md')) {
return "## Next release\n\n## v0.3.27+4041 - 2020-10-02\n\n## Fixed:\n\n - NPE when open settings";
}
return "";
}