Error when using File writeAsBytes in flutter android 11 Is there any other way it could work?

Issue I am currently using flutter to save a photo, but I am getting an error. E/flutter (14379): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: FileSystemException: Cannot open file, path = ‘/storage/emulated/0/Pictures/FolderName/2021-10-14T22:02:34.9847821.jpg’ (OS Error: Operation not permitted, errno = 1) E/flutter (14379): #0 _File.open.<anonymous

Continue reading