I've copied the same code from file_picker package docs, but it keeps giving me a null value for all file details, here is the code I've copied
FilePickerResult result = await FilePicker.platform.pickFiles();
if(result != null) {
   PlatformFile file = result.files.first;
   
   print(file.name);
   print(file.bytes);
   print(file.size);
   print(file.extension);
   print(file.path);
}
The file name, bytes, size, extension and path are all giving a null value. Anyone know what is the reason for that ? I've tried to upload a pdf, png, jpg, doc and get the same null value for all of them.