Tellraw constructor

Tellraw(
  1. Entity selector, {
  2. required List<TextComponent> show,
})

The Tellraw class is very similar to the Title class, but shows its texts in the chat.

Implementation

Tellraw(this.selector, {required List<TextComponent> show})
    : jsonText = json
          .encode(show.map((text) => text.toMap()).toList())
          .replaceAll('\\', '\u005C');