how to read internal storage file in flutter code example
Example 1: flutter path provider
dependencies:
path_provider: ^1.6.27
Example 2: write and read to file in flutter
Future writeCounter(int counter) async {
final file = await _localFile;
// Write the file.
return file.writeAsString('$counter');
}