RichElement.link constructor

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

Constructor for creating a RichElement of hyperlink type.

Implementation

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