getPath method

Future<String?> getPath(
  1. BuildContext context
)

Returning path from saved file.

FileSaver fileSaver = FileSaver(
  initialFileName:'File Name',
  fileTypes: const ['txt'],
);

String? path = await fileSaver.getPath(context);
print(path); // storage/emulated/0/File Name.txt

Implementation

Future<String?> getPath(BuildContext context) => filebrowser(context, this);