loadFile static method

Future<PubSpec> loadFile(
  1. String file
)

loads the pubspec from the file

Implementation

static Future<PubSpec> loadFile(String file) async =>
    PubSpec.fromJson(loadYaml(await File(file).readAsString()));