fromBrick static method
Factory which creates a MasonGenerator based on a GitPath for a remote BrickYaml file.
Implementation
static Future<MasonGenerator> fromBrick(Brick brick) async {
final path = brick.location.path != null
? brick.location.path!
: (await BricksJson.temp().add(brick)).path;
return MasonGenerator._fromBrick(path);
}