Constructor for creating a RichElement of text type.
RichElement.text({required String text, TextStyle? style}) : _text = text, _style = style, _url = null;