scriptName property

String scriptName

The filename of the script including the extension. If you are running in a compiled script then scriptName won't have a '.dart' extension. In a compiled script the extension generally depends on the OS but it could in theory be anything (except for .dart). Common extensions are .exe for windows and no extension for Linux and MacOS.

Implementation

String get scriptName => _scriptName;