pathToScript property Null safety

String pathToScript
@Deprecated('Use Script.current.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!;
}