From API level 30, app needs to ask for read or write permission for specefic directory.
Use MediaStore.requestForAccess method to get read and write access by file picker.
It will return DocumentTree if permission is granted
To use Android MediaStore API in Flutter. It supports both read & write operation in every android version.
It also requests for appropriate permission, if needed.