Script.fromFile constructor
Script.fromFile(
- String scriptPathTo, {
- DartProject? project,
Creates a script object from a scriptArg passed to a command.
The scriptPathTo
may be a filename or
a filename with a path prefix (relative or absolute)
If the path is realtive then it will be joined
with the current working directory to form
a absolute path.
To obtain a Script instance for your running application call:
var script = Script.current;
Implementation
Script.fromFile(String scriptPathTo, {DartProject? project})
: this._internal(scriptPathTo, create: false, project: project);