load static method

Future<PubSpec> load(
  1. Directory projectDirectory
)

loads the pubspec from the projectDirectory

Implementation

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