pathToScript property

  1. @Deprecated('Use Script.current.pathToScript')
String pathToScript

The absolute path to the dcli script which is currently running.

Implementation

@Deprecated('Use Script.current.pathToScript')
String get pathToScript {
  _scriptPath ??= DartScript.current.pathToScript;
  return _scriptPath!;
}