load static method

Future<PubSpec> load(
  1. Directory projectDirectory
)

loads the pubspec from the projectDirectory

Implementation

static Future<PubSpec> load(Directory projectDirectory) =>
    loadFile(p.join(projectDirectory.path, 'pubspec.yaml'));