PubSpec.fromScript constructor

PubSpec.fromScript(
  1. DartScript script
)

Reads a pubspec.yaml from the path that script is located in.

Implementation

PubSpec.fromScript(DartScript script) {
  _fromFile(script.pathToPubSpec);
}