current property

Script current

Returns the instance of the currently running script.

Implementation

// ignore: prefer_constructors_over_static_methods
static Script get current =>
    _current ??= Script.fromFile(_pathToCurrentScript);