RichElement.text constructor

RichElement.text({
  1. required String text,
  2. TextStyle? style,
})

Constructor for creating a RichElement of text type.

Implementation

RichElement.text({required String text, TextStyle? style})
    : _text = text,
      _style = style,
      _url = null;