I found an easy solution by using DocMan Package, please try it out.
final DocumentFile? pickDir = await DocMan.pick.directory();
// maybe to list all documents in the file,
// this lists folders and files together,
// there is a bool flag, dir.isFile; and more,
await dir.listDocuments();
/// git it a try