Pasteboard.image returns bytes when the clipboard contains raw bitmap data(as seen in packages' example) otherwise it returns null
I needed this functionality on Windows, but "CTRL + C" or "Right Click -> Copy" an image is not behaving like this. It contains the file path.
What I did to overcome this is to use final paths = Pasteboard.files(); , iterate over the list and filter out those that end with either .png .jpeg or .jpg and try to parse that path as a file;
final file = File(imagePath);