readString method

  1. @override
Future<String> readString(
  1. String path
)

Reads file contents.

Implementation

@override
Future<String> readString(String path) async {
  _print("readString $path");

  if (path.contains('CHANGELOG.md')) {
    return '''
## Next release

### Added

- Some new feature

## v0.3.27+4041 - 2020-10-02

## Added
- Cool feature

## Fixed
- NPE when open settings
''';
  }

  return '';
}