flutter working with files code example
Example 1: flutter path provider
dependencies:
path_provider: ^1.6.27
Example 2: write and read to file in flutter
Future get _localPath async {
final directory = await getApplicationDocumentsDirectory();
return directory.path;
}