@Contract(pure = true)
  static @NotNull TextComponent text(final char value) {
    if (value == '\n') return newline();
    if (value == ' ') return space();
    return text(String.valueOf(value));
  }
Creates a text component with the content of {@link String#valueOf(char)}.

@param value the char value
@return a text component
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/Component.java