I'm trying to open the camera in my app after pressing a button to capture images and videos. But I'm getting this message when I test it -
NoSuchMethodError: The method '[]' was called on null. receiver: null tried calling [] (0)
I'm new to flutter and I believe my code has gotten a little messy. Here is the link to my code
Can anyone help me with this, please?