script property
Directory
get
script
Gets the path to the current Dart script.
Implementation
Directory get script {
Uri scriptUri = Platform.script;
String scriptPath = File.fromUri(scriptUri).path;
return File(scriptPath).parent;
}