generate method

  1. @override
String generate()
override

Generates an item of type T

Implementation

@override
String generate() {
  final generator = BatchGenerator(_getBatch());
  generator.seed(_seed);
  final results = generator.generate();

  final outerDescription =
      "${titledEach(_locationName)} presents a${results["feeling"]} appearance with its ${results["material"]} exterior. "
      "The ${results["windowSize"]}, ${results["windowShape"]} windows ${results["windowEffect"]}, which enhances its overall aesthetic. "
      "This $_locationType is ${results["shape"]}.";

  final roofDescription =
      "The ${results["roofShape"]} roof, covered in ${results["roofMaterials"]}, has ${results["chimneys"]}.";

  return [outerDescription, roofDescription].join("\n");
}