fromFile static method
- String path
Loads configuration from a YAML file
Implementation
static Future<IPFSConfig> fromFile(String path) async {
final file = File(path);
final yaml = loadYaml(await file.readAsString());
return IPFSConfig.fromJson(
json.decode(json.encode(yaml)) as Map<String, dynamic>,
);
}