RichTextObject constructor

RichTextObject({
  1. required RichTextObjectTypeEnum type,
  2. String? text,
  3. TextAnnotations? annotations,
  4. String? href,
})

Returns a new RichTextObject instance.

Implementation

RichTextObject({
  required this.type,
  this.text,
  this.annotations,
  this.href,
});