ReleasePacker.fromFile constructor
ReleasePacker.fromFile(})
Implementation
factory ReleasePacker.fromFile(
File file, {
Map<String, String>? properties,
Directory? rootDirectory,
bool allowPropertiesFromEnv = false,
}) {
var json = _readFile(file, expected: true);
if (json == null) {
throw StateError("Can't read JSON from file: $file");
}
return ReleasePacker.fromJson(json,
properties: properties,
rootDirectory: rootDirectory ?? file.parent,
allowPropertiesFromEnv: allowPropertiesFromEnv);
}