RichText.marked constructor
const
RichText.marked({
- @JsonKey.new(name: 'type') @Default.new(RichTextType.marked) RichTextType type,
- @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;