Ok so while I was testing a type: FileType.audio parameter with allowedExtensions in desktop, it did not gave error in the logs. When I know that it must be type: FileType.custom when using the allowedExtensions that is when I know the file picker now works(opens the file manager of desktop).
I suggest maybe adding an assert to the type parameter when using alongside allowedExtensions? so we will know that FileType.custom should be used here?
Ok so while I was testing a type: FileType.audio parameter with allowedExtensions in desktop, it did not gave error in the logs. When I know that it must be type: FileType.custom when using the allowedExtensions that is when I know the file picker now works(opens the file manager of desktop).
I suggest maybe adding an assert to the type parameter when using alongside allowedExtensions? so we will know that FileType.custom should be used here?