resolve method

BrickConfig resolve({
  1. required String fromPath,
})

Implementation

BrickConfig resolve({required String fromPath}) {
  if (isReference) {
    var path = reference.path;
    if (reference.isRelative) {
      path = join(dirname(fromPath), path);
    }

    final json = YamlToJson.fromPath(path);

    return BrickConfig.fromJson(
      json,
      configPath: path,
    );
  }

  return brick;
}