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 fixed this issue by turning on developer mode as the logs suggest. Go to your Settings, search for Developer settings and enable it from there. Now restart the IDE and try again.