Category "dart-io"

Download file to Device download folder in Flutter

I'm trying to download files in my flutter app using the dio plugin for which I have to specify a "savePath". But using path_provider I can only see Application

How do I get the directory of the current script, in Dart?

I want to know what the script's directory is. I have a command-line Dart script.