generate method

  1. @override
Widget generate(
  1. Context context
)
override

Implementation

@override
Widget generate(Context context) {
  var i = texts.length;
  if (i == 1) {
    return ArmorStand.staticMarker(
      location,
      name: texts[0],
      nameVisible: true,
      tags: tags,
    );
  }
  return Execute.positioned(
    location,
    children: (texts.map((text) {
      i--;
      return ArmorStand.staticMarker(
        Location.rel(x: 0, y: i * space, z: 0),
        name: text,
        nameVisible: true,
        tags: tags,
      );
    }).toList()),
  );
}