RichText.marked constructor

const RichText.marked({
  1. @JsonKey.new(name: 'type') @Default.new(RichTextType.marked) RichTextType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
})

A marked text.

Implementation

const factory RichText.marked({
  /// Type of the rich text, always "marked"
  @JsonKey(name: 'type') @Default(RichTextType.marked) RichTextType type,

  /// The text
  @JsonKey(name: 'text') @RichTextConverter() required RichText text,
}) = RichTextMarked;