This question Flutter (Dart) How to add copy to clipboard on tap to a app? already tells how to copy a text to clipboard in dart.
Now I would like to copy a file or directory to clipboard. Something like this:
void main(List<String> args) {
String fileOrDirectoryPath = "/some/path/file.txt";
copyFileOrDirectoryToClipboard(fileOrDirectoryPath);
}
Then I would be able to paste the file or directory in my file manager with Ctrl + V
.
Any idea to achieve this ?