script property

Uri get script

The absolute URI of the script file of the program currently running.

The Uri is empty if the executable environment does not provide the location of a script. Otherwise the value is what the platform provides, which is usually the Platform.script value of dart:io.

Implementation

Uri get script;