flutter create file code example
Example 1: flutter path provider
dependencies:
path_provider: ^1.6.27
Example 2: write and read to file in flutter
Future<File> get _localFile async {
final path = await _localPath;
return File('$path/counter.txt');
}