pathToScript property

String pathToScript

Absolute path to 'this' script including the script name

If this is a .dart file then its current location. If this is a compiled script then the location of the compiled exe. If the script was globally activated then this will be a path to the script in the pub-cache.

Implementation

String get pathToScript => _pathToScript;