Question: How can I request permission for accessing the device microphone for recording audio in Flutter?
I have tried looking this up but haven't been able to find a clear answer.

Answer: 
For me it was because I copied a flutter project folder. I deleted the .fvm folder and did fvm use and it worked
I don't know if this is the correct way but I solved it by running vscode as administrator.